#40932 [Opn->Asn]: Timezone ignored

From: Date: Tue, 27 Mar 2007 21:18:56 +0000
Subject: #40932 [Opn->Asn]: Timezone ignored
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-110853@lists.php.net to get a copy of this message
ID: 40932 Updated by: tony2001@php.net Reported By: chrisw at kc dot net dot nz -Status: Open +Status: Assigned Bug Type: Date/time related Operating System: Windows XP PHP Version: 4.4.6 -Assigned To: +Assigned To: derick Previous Comments: ------------------------------------------------------------------------ [2007-03-27 21:09:26] chrisw at kc dot net dot nz 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 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=40932&edit=1

« previous php.bugs (#110853) next »