|  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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
27 + 48 = ?
Subscribe to this entry?

 [2001-01-16 21:12 UTC] dave2 at wetstring dot net
The following prints the expected output on one box:

 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 :)


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-01-16 21:14 UTC]
This should be fixed in CVS already. Please try the latest snapshot from and reopen this bug report if problem still exists.

PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Fri Mar 24 06:03:39 2023 UTC