php-src/ext/date/tests/bug35885.phpt
Nuno Lopes ba8461c0a0 MFB
2007-09-13 19:58:53 +00:00

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)