php-src/ext/date/tests/bug35414.phpt
Ilia Alshanetsky eed6f67ffa MFB51:
Fixed bug #35422 (strtotime() does not parse times with UTC as timezone).
Fixed bug #35414 (strtotime() no longer works with ordinal suffix).
2005-11-29 01:31:52 +00:00

15 lines
405 B
PHP

--TEST--
Bug #35414 (strtotime() no longer works with ordinal suffix)
--FILE--
<?php
date_default_timezone_set("UTC");
echo date(DATE_ISO8601, strtotime("Sat 26th Nov 2005 18:18")) . "\n";
echo date(DATE_ISO8601, strtotime("Dec. 4th, 2005")) . "\n";
echo date(DATE_ISO8601, strtotime("December 4th, 2005")) . "\n";
?>
--EXPECT--
2004-12-26T18:18:00+0000
2005-12-04T00:00:00+0000
2005-12-04T00:00:00+0000