derick Sun Jun 19 12:13:34 2005 EDT
Modified files:
/php-src/ext/date/tests bug26198.phpt
Log:
- Fixed test - strtotime() uses GMT if no TZ environment variable is set and
if
no explicit timezone abbreviation (CEST) or timezone identifier
(Europe/Amsterdam) is set.
http://cvs.php.net/diff.php/php-src/ext/date/tests/bug26198.phpt?r1=1.1&r2=1.2&ty=u
Index: php-src/ext/date/tests/bug26198.phpt
diff -u php-src/ext/date/tests/bug26198.phpt:1.1
php-src/ext/date/tests/bug26198.phpt:1.2
--- php-src/ext/date/tests/bug26198.phpt:1.1 Thu Jun 16 13:35:08 2005
+++ php-src/ext/date/tests/bug26198.phpt Sun Jun 19 12:13:34 2005
@@ -2,9 +2,9 @@
Bug #26198 (strtotime handling of "M Y" and "Y M" format)
--FILE--
<?php
- echo date("F Y\n", strtotime("Oct 2001"));
- echo date("M Y\n", strtotime("2001 Oct"));
+ echo gmdate("F Y (Y-m-d H:i:s T)\n", strtotime("Oct 2001"));
+ echo gmdate("M Y (Y-m-d H:i:s T)\n", strtotime("2001 Oct"));
?>
--EXPECT--
-October 2001
-Oct 2001
+October 2001 (2001-10-01 00:00:00 GMT)
+Oct 2001 (2001-10-01 00:00:00 GMT)
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php