cvs: php-src /ext/date/tests bug32270.phpt
| From: | Derick Rethans | Date: | Sat, 18 Jun 2005 10:25:41 +0000 |
| Subject: | cvs: php-src /ext/date/tests bug32270.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-32363@lists.php.net to get a copy of this message | ||
derick Sat Jun 18 06:25:41 2005 EDT
Modified files:
/php-src/ext/date/tests bug32270.phpt
Log:
- Fixed test case
#- Still not sure why the first TS is incorrect...
http://cvs.php.net/diff.php/php-src/ext/date/tests/bug32270.phpt?r1=1.1&r2=1.2&ty=u
Index: php-src/ext/date/tests/bug32270.phpt
diff -u php-src/ext/date/tests/bug32270.phpt:1.1 php-src/ext/date/tests/bug32270.phpt:1.2
--- php-src/ext/date/tests/bug32270.phpt:1.1 Fri Jun 17 10:21:53 2005
+++ php-src/ext/date/tests/bug32270.phpt Sat Jun 18 06:25:40 2005
@@ -2,24 +2,24 @@
Bug #32270 (strtotime/date behavior)
--FILE--
<?php
-putenv("TZ=America/New_York");
+putenv("TZ=America/Los_Angeles");
-echo date("m/d/Y H:i:s", -2145888000)."\n";
+echo date("m/d/Y H:i:s T", -2145888000)."\n";
echo strtotime("Jan 1 1902")."\n";
-echo date("m/d/Y H:i:s", -631123200)."\n";
+echo date("m/d/Y H:i:s T", -631123200)."\n";
echo strtotime("Jan 1 1950")."\n";
-echo date("m/d/Y H:i:s", 946713600)."\n";
+echo date("m/d/Y H:i:s T", 946713600)."\n";
echo strtotime("Jan 1 2000")."\n";
?>
--EXPECT--
-01/01/1902 00:00:00
+01/01/1902 00:00:00 PST
-2145888000
-01/01/1950 00:00:00
+01/01/1950 00:00:00 PST
-631123200
-01/01/2000 00:00:00
+01/01/2000 00:00:00 PST
946713600