mirror of
https://github.com/php/php-src.git
synced 2024-09-25 03:47:26 +00:00
eed6f67ffa
Fixed bug #35422 (strtotime() does not parse times with UTC as timezone). Fixed bug #35414 (strtotime() no longer works with ordinal suffix).
15 lines
405 B
PHP
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
|