mirror of
https://github.com/php/php-src.git
synced 2024-11-25 19:05:31 +08:00
22 lines
320 B
PHP
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)
|