php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #74803 Invalid milliseconds formatting from microseconds
Submitted: 2017-06-23 06:40 UTC Modified: 2017-06-23 15:00 UTC
From: ferrius7 at gmail dot com Assigned:
Status: Duplicate Package: Date/time related
PHP Version: 7.1.6 OS: Ubuntu 16
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: ferrius7 at gmail dot com
New email:
PHP Version: OS:

 

 [2017-06-23 06:40 UTC] ferrius7 at gmail dot com
Description:
------------
Invalid formatting datetime with milliseconds from microseconds

Test script:
---------------
echo (new \DateTimeImmutable('2016-10-07 12:34:22.999600'))->format('Y-m-d\TH:i:s.v');

// I expect 2016-10-07T12:34:22.999 or 2016-10-07T12:34:22.100 but not 2016-10-07T12:34:22.1000


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-06-23 15:00 UTC] requinix@php.net
-Status: Open +Status: Duplicate
 [2017-06-23 15:00 UTC] requinix@php.net
Duplicate of bug #74753.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Dec 11 17:01:28 2024 UTC