mirror of
https://github.com/php/php-src.git
synced 2024-09-21 09:57:23 +00:00
Fixed bug #51934 (strtotime plurals / incorrect time)
This commit is contained in:
parent
20d8c1bea5
commit
23dbefdb7b
1
NEWS
1
NEWS
@ -6,6 +6,7 @@ PHP NEWS
|
||||
. Fixed bug GH-8575 (CLI closes standard streams too early). (Levi Morrison)
|
||||
|
||||
- Date:
|
||||
. Fixed bug #51934 (strtotime plurals / incorrect time). (Derick)
|
||||
. Fixed bug #66019 (DateTime object does not support short ISO 8601 time
|
||||
format - YYYY-MM-DDTHH) (cmb, Derick)
|
||||
. Fixed bug #68549 (Timezones and offsets are not properly used when working
|
||||
|
12
ext/date/tests/bug51934.phpt
Normal file
12
ext/date/tests/bug51934.phpt
Normal file
@ -0,0 +1,12 @@
|
||||
--TEST--
|
||||
Bug #51934 (strtotime plurals / incorrect time)
|
||||
--FILE--
|
||||
<?php
|
||||
date_default_timezone_set('America/Los_Angeles');
|
||||
|
||||
echo date("Y-m-d H:i:s", strtotime("2010-05-27 19:18 4 Sunday ago")), "\n";
|
||||
echo date("Y-m-d H:i:s", strtotime("2010-05-27 19:18 4 Sundays ago")), "\n";
|
||||
?>
|
||||
--EXPECTF--
|
||||
2010-05-02 19:18:00
|
||||
2010-05-02 19:18:00
|
Loading…
Reference in New Issue
Block a user