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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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: Sun Dec 22 09:01:29 2024 UTC