ID: 33871 Comment by: xczimi at sztaki dot hu Reported By: jeremy at techtrav dot com Status: Assigned Bug Type: Date/time related Operating System: Windows XP Apache 2 PHP Version: 5.1.0b3 Assigned To: derick New Comment:
I unpacked both 5.0.4, 5.1.0b3 and the latest code to my Win XP box, and tried the following in command line: C:\devtool>php-5.1.0b3\php -r "echo date('r');" Thu, 04 Aug 2005 08:05:40 +0000 C:\devtool>php-5.0.4\php -r "echo date('r');" Thu, 04 Aug 2005 10:05:45 +0200 C:\devtool>php-latest\php -r "echo date('r');" Thu, 04 Aug 2005 08:10:33 +0000 I think the oly problem is that php doesn't read the timezone of the Operating system. regards, Czimi Previous Comments: ------------------------------------------------------------------------ [2005-07-26 18:21:13] jeremy at techtrav dot com I am Central Standard Time in MN and we are on Day light Savings time. ------------------------------------------------------------------------ [2005-07-26 18:16:49] [EMAIL PROTECTED] This could be also a timezone issue. What's your TZ ? ------------------------------------------------------------------------ [2005-07-26 18:12:59] jeremy at techtrav dot com I have upgraded to the newest snap as you have requested and I am still getting the same results. PHP 5.0.4 returns the correct time. PHP 5.1.X returns the wrong time. Could this be an operating system issue? I am on Windows XP with Apache 2. ------------------------------------------------------------------------ [2005-07-26 18:05:51] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5-latest.tar.gz For Windows: http://snaps.php.net/win32/php5-win32-latest.zip >you get the expected result: No, *I* get the expected result with both versions. ------------------------------------------------------------------------ [2005-07-26 18:02:13] jeremy at techtrav dot com you get the expected result: string(19) "10/30/2005 23:10:00" string(19) "10/31/2005 00:10:00" However in PHP 5.1.X I get: string(19) "10/31/2005 00:10:00" string(19) "10/31/2005 00:10:00" Which is wrong. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/33871 -- Edit this bug report at http://bugs.php.net/?id=33871&edit=1