PHP 4.0 Bug #8748: date() and friends do not honor TZ environment variable correctly

From: Date: Wed, 17 Jan 2001 02:12:36 +0000
Subject: PHP 4.0 Bug #8748: date() and friends do not honor TZ environment variable correctly
Groups: php.dev 
Request: Send a blank email to php-dev+get-44305@lists.php.net to get a copy of this message
From: dave2@wetstring.net Operating system: Debian 2.2/Linux 2.2.17 PHP version: 4.0.3pl1 PHP Bug Type: Date/time related Bug description: date() and friends do not honor TZ environment variable correctly The following prints the expected output on one box: putenv("TZ=PST"); print date("l, jS of F, Y @ H:i (T)"); The other box always presents the system-default timezone. Worse, if I hammer the first box the right way (it seems to be mostly flat-out reloading, but sometimes it just happens immediately), it'll spontaniously display the system-default timezone as well, if only for one page reload. Both boxes have the timezone data (/usr/lshare/zoneinfo/*), have the same revisions of glibc2 from Debian (2.1.3-13), the same php4/apache packages from Debian, same kernel version (although with different compliation options), etc.. Thanks in advance :) -- Edit Bug report at: http://bugs.php.net/?id=8748&edit=1

« previous php.dev (#44305) next »