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

15 lines
234 B
Plaintext
Raw Normal View History

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