|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
Patchesbug66019.patch (last revision 2016-08-07 16:35 UTC by cmb@php.net)Pull RequestsHistoryAllCommentsChangesGit/SVN commits
[2013-11-03 11:43 UTC] felipe@php.net
-Status: Open
+Status: Assigned
-Assigned To:
+Assigned To: derick
[2016-08-07 16:35 UTC] cmb@php.net
[2016-08-07 16:35 UTC] cmb@php.net
-Status: Assigned
+Status: Verified
[2016-08-07 16:35 UTC] cmb@php.net
[2017-10-24 05:24 UTC] kalle@php.net
-Status: Verified
+Status: Assigned
[2021-04-07 09:34 UTC] derick@php.net
[2021-04-07 12:42 UTC] cmb@php.net
[2022-05-20 12:25 UTC] git@php.net
[2022-05-20 12:25 UTC] git@php.net
-Status: Assigned
+Status: Closed
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 22:00:01 2025 UTC |
Description: ------------ According to ISO 8601, the following is a valid date-time representation: 2012-02-02T10 (representing 2 February 2012, 10:00) However, PHP throws an error if the minutes are not specified. Test script: --------------- $tz = new DateTimeZone("Europe/Amsterdam"); $dateObject = new DateTime( '2012-02-02T10', $tz ); echo $dateObject->format( 'j F Y H:i' ); Expected result: ---------------- 2 February 2012 10:00 Actual result: -------------- Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (2012-02-02T10) at position 11 (1): Unexpected character'