php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31957 putenv failing with TZ (still a problem)
Submitted: 2005-02-13 18:23 UTC Modified: 2005-02-13 18:39 UTC
From: freebsd at mwi dot dk Assigned:
Status: Not a bug Package: Date/time related
PHP Version: 4.3.8 OS: FreeBSD 4.10
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: freebsd at mwi dot dk
New email:
PHP Version: OS:

 

 [2005-02-13 18:23 UTC] 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-02-13 18:30 UTC] sniper@php.net
Works fine for me. Are you sure there IS a timezone called US/Central in your system? (these vary from OS to OS..)

 [2005-02-13 18:37 UTC] freebsd at mwi dot dk
Sorry - I found all the right names in zoneinfo: 
locate zoneinfo | more
 [2005-02-13 18:39 UTC] sniper@php.net
Still not PHP bug -> keep it bogus. :)

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 16 16:01:34 2025 UTC