xref: /PHP-8.2/ext/date/tests/bug74671.phpt (revision 6418eba1)
1--TEST--
2Bug #74671 (DST timezone abbreviation has incorrect offset)
3--FILE--
4<?php
5$dt = new DateTime(
6    '2017-05-16T10:11:32',
7    new DateTimeZone('CEST')
8);
9var_dump($dt);
10var_dump($dt->format('c'));
11?>
12--EXPECTF--
13object(DateTime)#%d (%d) {
14  ["date"]=>
15  string(26) "2017-05-16 10:11:32.000000"
16  ["timezone_type"]=>
17  int(2)
18  ["timezone"]=>
19  string(4) "CEST"
20}
21string(25) "2017-05-16T10:11:32+02:00"
22