Add test for constructing times during the dst/st conversion.

This commit is contained in:
Daniel Convissor 2011-07-13 16:21:10 +00:00
parent 3be1f24fba
commit cafb45221f

View 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