1--TEST--
2Test for setting Date/Time during a forward DST transition
3--FILE--
4<?php
5date_default_timezone_set('America/Chicago');
6
7$date = new DateTime('2020-03-08 01:30:00');
8echo $date->setTime(2, 0)->format('Y-m-d H:i:s T/e - U') . "\n";
9
10$date = new DateTime('2020-03-08 01:30:00');
11echo $date->setTime(2, 30)->format('Y-m-d H:i:s T/e - U') . "\n";
12
13$date = new DateTime('2020-03-08 01:30:00');
14echo $date->setTime(3, 0)->format('Y-m-d H:i:s T/e - U') . "\n";
15
16$date = new DateTime('2020-03-08 01:30:00');
17echo $date->setTime(1, 59, 59)->format('Y-m-d H:i:s T/e - U') . "\n";
18
19?>
20--EXPECT--
212020-03-08 03:00:00 CDT/America/Chicago - 1583654400
222020-03-08 03:30:00 CDT/America/Chicago - 1583656200
232020-03-08 03:00:00 CDT/America/Chicago - 1583654400
242020-03-08 01:59:59 CST/America/Chicago - 1583654399
25