Fixed bug #51934 (strtotime plurals / incorrect time)

This commit is contained in:
Derick Rethans 2022-05-20 13:11:01 +01:00
parent 20d8c1bea5
commit 23dbefdb7b
2 changed files with 13 additions and 0 deletions

1
NEWS
View File

@ -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

View 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