#26694 [Opn]: strtotime fails on 'Sun, 21 Dec 2003 20:38:33 +0000 GMT'

From: Date: Mon, 22 Dec 2003 18:29:16 +0000
Subject: #26694 [Opn]: strtotime fails on 'Sun, 21 Dec 2003 20:38:33 +0000 GMT'
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-52392@lists.php.net to get a copy of this message
ID: 26694 User updated by: phpbug at thequod dot de Reported By: phpbug at thequod dot de Status: Open Bug Type: Date/time related Operating System: Windows XP PHP Version: 4.3.4 New Comment: summary: it fails on $d = gmdate("r") . ' GMT'; var_dump( strtotime($d) ); Previous Comments: ------------------------------------------------------------------------ [2003-12-22 12:46:58] phpbug at thequod dot de Description: ------------ I use strtotime to decode the If-Modified-Since header and just noticed that Firebird puts and offset in front of the "GMT". I don't know if this is RFC conform, but it should be recognized by strtotime(), IMHO. Reproduce code: --------------- var_dump(strtotime('Sun, 21 Dec 2003 20:38:33 +0000 GMT')); Expected result: ---------------- -1 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=26694&edit=1

« previous php.bugs (#52392) next »