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 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.
(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

Add a Patch

Pull Requests

Add a Pull Request

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: Thu Apr 25 18:02:40 2024 UTC