ID: 26694 Updated by: [EMAIL PROTECTED] Reported By: phpbug at thequod dot de -Status: Open +Status: Bogus Bug Type: Date/time related Operating System: Windows XP PHP Version: 4.3.4 New Comment:
Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php You can either define the timezone by +dddd or by the 3-char identifier of that timezone. Your format isn't defined by the syntax - for further readings see http://www.gnu.org/manual/tar-1.12/html_chapter/tar_7.html Previous Comments: ------------------------------------------------------------------------ [2003-12-22 13:29:16] phpbug at thequod dot de summary: it fails on $d = gmdate("r") . ' GMT'; var_dump( strtotime($d) ); ------------------------------------------------------------------------ [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
