php-src/ext/date/tests/bug26198.phpt
Derick Rethans eab2cbf494 - 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.
2005-06-19 16:13:34 +00:00

11 lines
294 B
PHP

--TEST--
Bug #26198 (strtotime handling of "M Y" and "Y M" format)
--FILE--
<?php
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 (2001-10-01 00:00:00 GMT)
Oct 2001 (2001-10-01 00:00:00 GMT)