mirror of
https://github.com/php/php-src.git
synced 2024-11-24 10:24:11 +08:00
Add test for constructing times during the dst/st conversion.
This commit is contained in:
parent
3be1f24fba
commit
cafb45221f
15
ext/date/tests/DateTime_construct-dst-overlap.phpt
Normal file
15
ext/date/tests/DateTime_construct-dst-overlap.phpt
Normal file
@ -0,0 +1,15 @@
|
||||
--TEST--
|
||||
DateTime::__construct() -- fall daylight/standard overlap
|
||||
--CREDITS--
|
||||
Daniel Convissor <danielc@php.net>
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
date_default_timezone_set('America/New_York');
|
||||
// PHP defaults to Daylight Saving Time. Ensure consistency in future.
|
||||
$d = new DateTime('2011-11-06 01:30:00');
|
||||
echo $d->format('P') . "\n";
|
||||
|
||||
?>
|
||||
--EXPECT--
|
||||
-04:00
|
Loading…
Reference in New Issue
Block a user