mirror of
https://github.com/php/php-src.git
synced 2024-11-27 11:53:33 +08:00
Fixed bug #66019 (DateTime object does not support short ISO 8601 time format - YYYY-MM-DDTHH)
This commit is contained in:
parent
ef55bf7149
commit
ee2776210b
4
NEWS
4
NEWS
@ -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)
|
||||
|
||||
|
10
ext/date/tests/bug66019.phpt
Normal file
10
ext/date/tests/bug66019.phpt
Normal 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
|
Loading…
Reference in New Issue
Block a user