1
0
mirror of https://github.com/php/php-src.git synced 2026-04-20 14:31:06 +02:00
Files
archived-php-src/ext/date/tests/bug51934.phpt
2022-05-20 13:18:43 +01:00

13 lines
331 B
PHP

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