PHP 4.0 Bug #8748 Updated: date() and friends do not honor TZ environment variable correctly
| From: | sniper@php.net | Date: | Wed, 17 Jan 2001 02:14:56 +0000 |
| Subject: | PHP 4.0 Bug #8748 Updated: date() and friends do not honor TZ environment variable correctly | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-44306@lists.php.net to get a copy of this message | ||
ID: 8748
Updated by: sniper
Reported By: dave2@wetstring.net
Old-Status: Open
Status: Closed
Bug Type: Date/time related
Assigned To:
Comments:
This should be fixed in CVS already. Please try the latest snapshot from
http://snaps.php.net/ and reopen this bug report if problem
still exists.
--Jani
Previous Comments:
---------------------------------------------------------------------------
[2001-01-16 21:12:36] dave2@wetstring.net
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 :)
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=8748