mirror of
https://github.com/php/php-src.git
synced 2024-10-19 07:22:40 +00:00
88268c6bcc
- MFH: Fixed bug #35885 (strtotime("NOW") no longer works). - MFH: Fixed bug #33789 (Many Problems with SunFuncs). - MFH: Fixed bug #33671 (sun_rise and sun_set don't return a GMT timestamp if one passes an offset). - MFH: Fixed bug #32820 (date_sunrise and date_sunset don't handle GMT offset well). - MFH: Fixed bug #30937 (date_sunrise() & date_sunset() don't handle endless day/night at high latitudes).
15 lines
234 B
PHP
15 lines
234 B
PHP
--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)
|