Fixed bug #66019 (DateTime object does not support short ISO 8601 time format - YYYY-MM-DDTHH)

This commit is contained in:
Derick Rethans 2022-05-20 13:00:34 +01:00
parent ef55bf7149
commit ee2776210b
2 changed files with 14 additions and 0 deletions

4
NEWS
View File

@ -6,6 +6,10 @@ PHP NEWS
. Fixed bug GH-8575 (CLI closes standard streams too early). (Levi Morrison)
- Date:
. Fixed bug #66019 (DateTime object does not support short ISO 8601 time
format - YYYY-MM-DDTHH) (cmb, Derick)
. Fixed bug #68549 (Timezones and offsets are not properly used when working
with dates) (Derick, Roel Harbers)
. Fixed bug GH-7758 (Problems with negative timestamps and fractions).
(Derick, Ilija)

View File

@ -0,0 +1,10 @@
--TEST--
Bug #66019 (DateTime object does not support short ISO 8601 time format - YYYY-MM-DDTHH)
--FILE--
<?php
$tz = new DateTimeZone("Europe/Amsterdam");
$dateObject = new DateTime( '2012-02-02T10', $tz );
echo $dateObject->format( 'j F Y H:i' );
?>
--EXPECT--
2 February 2012 10:00