php-src/ext/date/tests/bug35885.phpt

22 lines
320 B
PHP

--TEST--
Bug #35885 (strtotime("NOW") no longer works)
--FILE--
<?php
date_default_timezone_set("UTC");
$time = time();
$ts = date(DATE_ISO8601, strtotime('NOW', $time));
$ts2 = date(DATE_ISO8601, $time);
$res = ($ts == $ts2);
var_dump($res);
if (!$res) {
var_dump($ts);
var_dump($ts2);
}
?>
--EXPECT--
bool(true)