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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: dave2 at wetstring dot net
New email:
PHP Version: OS:

 

 [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

Add a Patch

Pull Requests

Add a Pull Request

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: Tue Mar 19 07:01:29 2024 UTC