Re: date() and wrong timezone (or time)
| From: | Nathan Nobbe | Date: | Wed, 06 Feb 2008 14:40:04 +0000 |
| Subject: | Re: date() and wrong timezone (or time) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-268780@lists.php.net to get a copy of this message | ||
On Feb 6, 2008 6:13 AM, Martin Marques <martin@marquesminen.com.ar> wrote:
> I got an update from tzdata on a Debian server due to a daylight saving
> change here in Argentina.
>
> The problem is that, even when the system sees the correct time, php
> keeps giving me the *old* hour.
>
> $ date
> mié feb 6 09:03:57 ARST 2008
> $ echo "<?php echo date('H:i') . \"\n\"; ?>"|php5
> 08:04
>
> What can my problem be?
see what you have as the value for the date.timezone ini setting.
-nathan*
*