php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8748 date() and friends do not honor TZ environment variable correctly
Submitted: 2001-01-16 21:12 UTC Modified: 2001-01-16 21:14 UTC
From: dave2 at wetstring dot net Assigned:
Status: Closed Package: Date/time related
PHP Version: 4.0.3pl1 OS: Debian 2.2/Linux 2.2.17
Private report: No CVE-ID: None
 [2001-01-16 21:12 UTC] dave2 at wetstring dot 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 :)

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-01-16 21:14 UTC] sniper@php.net
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
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Dec 09 11:01:28 2024 UTC