1--TEST-- 2DateTime::__construct() -- fall daylight/standard overlap 3--CREDITS-- 4Daniel Convissor <danielc@php.net> 5--FILE-- 6<?php 7 8date_default_timezone_set('America/New_York'); 9// PHP defaults to Daylight Saving Time. Ensure consistency in future. 10$d = new DateTime('2011-11-06 01:30:00'); 11echo $d->format('P') . "\n"; 12 13date_default_timezone_set('Atlantic/Azores'); 14// PHP defaults to Daylight Saving Time. Ensure consistency in future. 15$d = new DateTime('2011-10-30 00:30:00'); 16echo $d->format('P') . "\n"; 17 18date_default_timezone_set('Europe/London'); 19// PHP defaults to normal time. Ensure consistency in future. 20$d = new DateTime('2011-10-30 01:30:00'); 21echo $d->format('P') . "\n"; 22 23date_default_timezone_set('Europe/Amsterdam'); 24// PHP defaults to normal time. Ensure consistency in future. 25$d = new DateTime('2011-10-30 02:30:00'); 26echo $d->format('P') . "\n"; 27 28?> 29--EXPECT-- 30-04:00 31+00:00 32+00:00 33+01:00 34