|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2005-06-16 01:24 UTC] iliaa@php.net
 | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 09:00:01 2025 UTC | 
Description: ------------ strtotime('20050518t090000Z') returns -1 and should return 1116406800 Further experimentation seems to suggest that any time in that format whose tens-of-hours digit is 0 results in -1. Reproduce code: --------------- echo strtotime('20050518t090000Z')."\n"; echo strtotime('20050518t091234Z')."\n"; echo strtotime('20050518t191234Z')."\n"; echo strtotime('20050518t090000')."\n"; echo strtotime('20050518t091234')."\n"; echo strtotime('20050518t191234')."\n"; Expected result: ---------------- 1116406800 1116407554 1116443554 1116403200 1116403954 1116439954 [Of course, some of that depends what time zone you're in] Actual result: -------------- -1 -1 1116443554 -1 -1 1116439954