strtotime() does not parse times with UTC as timezone
| Bug #35422 | strtotime() does not parse times with UTC as timezone | ||||
|---|---|---|---|---|---|
| Submitted: | 2005-11-27 10:11 UTC | Modified: | 2005-11-29 00:49 UTC | ||
| From: | HyneeHoadley at Hotmail dot com | Assigned: | derick (profile) | ||
| Status: | Closed | Package: | Date/time related | ||
| PHP Version: | 5.1.0 | OS: | Windows XP | ||
| Private report: | No | CVE-ID: | None | ||
[2005-11-27 10:11 UTC] HyneeHoadley at Hotmail dot com
Description:
------------
strtotime() used to accept dates with the format 'July 1, 2000 00:00:00 UTC', but now produces NULL or empty output.
Reproduce code:
---------------
<?php
$gmt_time = strtotime('July 1, 2000 00:00:00 GMT');
$utc_time = strtotime('July 1, 2000 00:00:00 UTC');
echo "$gmt_time\n";
echo "$utc_time\n";
print_r($utc_time);
?>
Expected result:
----------------
962409600
962409600
962409600
Actual result:
--------------
962409600
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2005-11-29 00:49 UTC] iliaa@php.net