#31957 [Opn->Bgs]: putenv failing with TZ (still a problem)
| From: | sniper@php.net | Date: | Sun, 13 Feb 2005 17:31:00 +0000 |
| Subject: | #31957 [Opn->Bgs]: putenv failing with TZ (still a problem) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-73978@lists.php.net to get a copy of this message | ||
ID: 31957
Updated by: sniper@php.net
Reported By: freebsd at mwi dot dk
-Status: Open
+Status: Bogus
Bug Type: Date/time related
Operating System: FreeBSD 4.10
PHP Version: 4.3.8
New Comment:
Works fine for me. Are you sure there IS a timezone called US/Central
in your system? (these vary from OS to OS..)
Previous Comments:
------------------------------------------------------------------------
[2005-02-13 18:23:04] freebsd at mwi dot dk
Description:
------------
TZ changes will not affect time
Same as bug #8609
Reproduce code:
---------------
# foo.php
putenv("TZ=Greenwich");
echo date("H")."\n";
putenv("TZ=US/Central");
echo date("H")."\n";
putenv("TZ=Greenwich");
echo date("H")."\n";
Expected result:
----------------
Not the same 3 numbers
Actual result:
--------------
17 17 17
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=31957&edit=1