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

From: Date: Sun, 27 Nov 2005 13:02:44 +0000
Subject: #35422 [Opn->Asn]: strtotime() does not parse times with UTC as timezone
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-89096@lists.php.net to get a copy of this message
ID: 35422 Updated by: tony2001@php.net Reported By: HyneeHoadley at Hotmail dot com -Status: Open +Status: Assigned Bug Type: Date/time related Operating System: Windows XP PHP Version: 5.1.0 -Assigned To: +Assigned To: derick New Comment: Assigned to the author. Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#89096) next »