|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2007-03-28 08:50 UTC] derick@php.net
  [2007-04-05 01:00 UTC] php-bugs at lists dot php dot net
 | |||||||||||||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Thu Oct 30 03:00:01 2025 UTC | 
Description: ------------ I get the same date() output regardless of TZ setting on Windows XP. I suspect it must be a configuration error, as I get the same problem with PHP 4.4.2, 4.4.6 and 5.2.1 with date.timezone = Pacific/Auckland Have also tried on two separate Windows XP machines. Doing this on Linux works fine and gives expected result. Web Server is Apache 2.0.55 Reproduce code: --------------- <?php putenv("TZ=Pacific/Auckland"); echo "Pacific/Auckland Time: ". date("h:i:s a T")."<br/>"; putenv("TZ=Australia/Sydney"); echo "Australia/Sydney Time: ". date("h:i:s a T")."<br/>"; ?> Expected result: ---------------- I expect to see the timestamp for Pacific/Auckland to be GMT+12 I expect to see the timestamp for Australia/Sydney to be GMT+10 Actual result: -------------- I get both times output identical as UTC/GMT e.g. Pacific/Auckland Time: 09:01:22 pm Pac Australia/Sydney Time: 09:01:22 pm Aus