1--TEST--
2Test for Date/Time construction during a forward DST transition
3--FILE--
4<?php
5date_default_timezone_set('America/New_York');
6
7$date = new DateTime('2010-03-14 01:30:00');
8echo $date->format('Y-m-d H:i:s T/e - U') . "\n";
9
10$date = new DateTime('2010-03-14 02:00:00');
11echo $date->format('Y-m-d H:i:s T/e - U') . "\n";
12
13$date = new DateTime('2010-03-14 02:30:00');
14echo $date->format('Y-m-d H:i:s T/e - U') . "\n";
15
16$date = new DateTime('2010-03-14 03:00:00');
17echo $date->format('Y-m-d H:i:s T/e - U') . "\n";
18
19$date = new DateTime('2010-03-14 03:30:00');
20echo $date->format('Y-m-d H:i:s T/e - U') . "\n";
21?>
22--EXPECT--
232010-03-14 01:30:00 EST/America/New_York - 1268548200
242010-03-14 03:00:00 EDT/America/New_York - 1268550000
252010-03-14 03:30:00 EDT/America/New_York - 1268551800
262010-03-14 03:00:00 EDT/America/New_York - 1268550000
272010-03-14 03:30:00 EDT/America/New_York - 1268551800
28