cvs: php-src /ext/date/tests bug30532.phpt

From: Date: Fri, 17 Jun 2005 22:45:32 +0000
Subject: cvs: php-src /ext/date/tests bug30532.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-32356@lists.php.net to get a copy of this message
derick Fri Jun 17 18:45:32 2005 EDT Modified files: /php-src/ext/date/tests bug30532.phpt Log: - Fix test case. #- Bug might actually be in date() rendering things wrong, but that code # is not yet replaced. http://cvs.php.net/diff.php/php-src/ext/date/tests/bug30532.phpt?r1=1.1&r2=1.2&ty=u Index: php-src/ext/date/tests/bug30532.phpt diff -u php-src/ext/date/tests/bug30532.phpt:1.1 php-src/ext/date/tests/bug30532.phpt:1.2 --- php-src/ext/date/tests/bug30532.phpt:1.1 Fri Jun 17 10:21:53 2005 +++ php-src/ext/date/tests/bug30532.phpt Fri Jun 17 18:45:31 2005 @@ -3,21 +3,21 @@ --FILE-- <?php putenv("TZ=America/New_York"); -echo date('Y-m-d H:i:s', strtotime('2004-10-31 EDT +1 hour'))."\n"; -echo date('Y-m-d H:i:s', strtotime('2004-10-31 EDT +2 hours'))."\n"; -echo date('Y-m-d H:i:s', strtotime('2004-10-31 EDT +3 hours'))."\n"; +echo date('Y-m-d H:i:s T', strtotime('2004-10-31 EDT +1 hour'))."\n"; +echo date('Y-m-d H:i:s T', strtotime('2004-10-31 EDT +2 hours'))."\n"; +echo date('Y-m-d H:i:s T', strtotime('2004-10-31 EDT +3 hours'))."\n"; echo "\n"; -echo date('Y-m-d H:i:s', strtotime('2004-10-31 +1 hour'))."\n"; -echo date('Y-m-d H:i:s', strtotime('2004-10-31 +2 hours'))."\n"; -echo date('Y-m-d H:i:s', strtotime('2004-10-31 +3 hours'))."\n"; +echo date('Y-m-d H:i:s T', strtotime('2004-10-31 +1 hour'))."\n"; +echo date('Y-m-d H:i:s T', strtotime('2004-10-31 +2 hours'))."\n"; +echo date('Y-m-d H:i:s T', strtotime('2004-10-31 +3 hours'))."\n"; ?> --EXPECT-- -2004-10-31 01:00:00 -2004-10-31 01:00:00 -2004-10-31 02:00:00 +2004-10-31 01:00:00 EDT +2004-10-31 01:00:00 EST +2004-10-31 02:00:00 EST -2004-10-31 01:00:00 -2004-10-31 01:00:00 -2004-10-31 02:00:00 +2004-10-31 01:00:00 EDT +2004-10-31 02:00:00 EST +2004-10-31 03:00:00 EST

« previous php.cvs (#32356) next »