|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #78966 strtotime transform error with
Submitted: 2019-12-16 08:06 UTC Modified: 2022-07-22 16:42 UTC
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: jackyxie007 at gmail dot com Assigned: derick (profile)
Status: Closed Package: Date/time related
PHP Version: Irrelevant OS: Linux Ubuntu 4.4.0-151-generic
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: jackyxie007 at gmail dot com
New email:
PHP Version: OS:


 [2019-12-16 08:06 UTC] jackyxie007 at gmail dot com
With decimal length of 9 digits after the Datetime string(Eg: 2019-12-15T17:51:38.948471000Z), strtotime return false.

Test script:

$str = '2019-12-15T17:51:38.948471000Z';

Expected result:

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2019-12-16 09:41 UTC]
-Status: Open +Status: Verified
 [2019-12-16 09:41 UTC]
Behavior confirmed: <>.

The documentation[1] doesn't mention any restriction on the number
of fractional digits, so this is either an implementation or a
documentation bug.

[1] <>
 [2020-01-20 17:10 UTC]
-Assigned To: +Assigned To: derick
 [2020-01-20 17:10 UTC]
Assigning derick to confirm if it's an implementation bug or a doc bug.
 [2022-07-22 16:42 UTC]
-Status: Verified +Status: Closed
 [2022-07-22 16:42 UTC]
Thank you for your bug report. This issue has already been fixed
in the latest released version of PHP, which you can download at

This was fixed in PHP 8.0 already.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 21 20:01:32 2024 UTC