#43548 [NEW]: date() returns incorrect time by +1 hour

From: Date: Sun, 09 Dec 2007 22:00:21 +0000
Subject: #43548 [NEW]: date() returns incorrect time by +1 hour
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-120503@lists.php.net to get a copy of this message
From: andrew at confirmalert dot com dot au Operating system: Win 2003 Server SP2 PHP version: 5.2.5 PHP Bug Type: Date/time related Bug description: date() returns incorrect time by +1 hour Description: ------------ OK. I can reproduce this bug. The previous ticket was closed prematurely and with an incorrect status. So there is no doubt or miscommunication I have re-run the test on the same machine using the two versions of PHP. The results are the still the same as originally reported in bug '42755 date() returns incorrect time by +1 hour'. Reproduce code: --------------- ====== code - test1.php ====== <?php echo date("Y-m-d @ g:i", 1190671200); ?> Expected result: ---------------- ====== result using php 5.0.3 ====== C:\PHP>php test1.php 2007-09-24 @ 10:00 C:\PHP>php --version PHP 5.0.3 (cli) (built: Dec 15 2004 08:07:57) Copyright (c) 1997-2004 The PHP Group Zend Engine v2.0.3, Copyright (c) 1998-2004 Zend Technologies Actual result: -------------- ====== result using php 5.2.5 ====== C:\php-5.2.5>php test1.php 2007-09-24 @ 11:00 C:\php-5.2.5>php --version PHP 5.2.5 (cli) (built: Nov 8 2007 23:18:51) Copyright (c) 1997-2007 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies -- Edit bug report at http://bugs.php.net/?id=43548&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=43548&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=43548&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=43548&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=43548&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=43548&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=43548&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=43548&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=43548&r=needscript Try newer version: http://bugs.php.net/fix.php?id=43548&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=43548&r=support Expected behavior: http://bugs.php.net/fix.php?id=43548&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=43548&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=43548&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=43548&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=43548&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=43548&r=dst IIS Stability: http://bugs.php.net/fix.php?id=43548&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=43548&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=43548&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=43548&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=43548&r=mysqlcfg

« previous php.bugs (#120503) next »