Re: date() and wrong timezone (or time)

From: Date: Thu, 07 Feb 2008 14:16:25 +0000
Subject: Re: date() and wrong timezone (or time)
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-268873@lists.php.net to get a copy of this message
Jochem Maas escribió:
Martin Marques schreef:
Nathan Nobbe escribió:
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.
I doubt that debian stable is pushing newer versions of TZ db, than that found in php ... you don't mention your php version btw.
The tzdata was from volatile. # php -v PHP 5.2.0-8+etch10 (cli) (built: Jan 18 2008 18:52:58) Copyright (c) 1997-2006 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2006 Zend Technologies
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?
what timezone does php think it's in? - output all stuff from date, not just hour:minutes.
Already solved it. I installed timezonedb from pecl.

« previous php.general (#268873) next »