DateTime_construct-dst-overlap.phpt 342 B

123456789101112131415
  1. --TEST--
  2. DateTime::__construct() -- fall daylight/standard overlap
  3. --CREDITS--
  4. Daniel Convissor <danielc@php.net>
  5. --FILE--
  6. <?php
  7. date_default_timezone_set('America/New_York');
  8. // PHP defaults to Daylight Saving Time. Ensure consistency in future.
  9. $d = new DateTime('2011-11-06 01:30:00');
  10. echo $d->format('P') . "\n";
  11. ?>
  12. --EXPECT--
  13. -04:00