#35422 [Asn->Csd]: strtotime() does not parse times with UTC as timezone

From: Date: Mon, 28 Nov 2005 23:49:31 +0000
Subject: #35422 [Asn->Csd]: strtotime() does not parse times with UTC as timezone
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-89332@lists.php.net to get a copy of this message
 ID:               35422
 Updated by:       iliaa@php.net
 Reported By:      HyneeHoadley at Hotmail dot com
-Status:           Assigned
+Status:           Closed
 Bug Type:         Date/time related
 Operating System: Windows XP
 PHP Version:      5.1.0
 Assigned To:      derick
 New Comment:

This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.




Previous Comments:
------------------------------------------------------------------------

[2005-11-27 14:02:43] tony2001@php.net

Assigned to the author.

------------------------------------------------------------------------

[2005-11-27 10:11:17] 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




------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=35422&edit=1


Thread (3 messages)

« previous php.bugs (#89332) next »