xref: /PHP-8.1/ext/date/tests/bug81504.phpt (revision 6166ac51)
1--TEST--
2Bug #81504: Incorrect timezone transition details for POSIX data
3--INI--
4date.timezone=UTC
5--FILE--
6<?php
7
8$tz = new DateTimeZone('Europe/Amsterdam');
9foreach ($tz->getTransitions(strtotime("1996-01-01"), strtotime("1997-12-31")) as $tr) {
10    echo "{$tr['time']} {$tr['offset']} {$tr['abbr']}\n";
11}
12?>
13--EXPECT--
141996-01-01T00:00:00+0000 3600 CET
151996-03-31T01:00:00+0000 7200 CEST
161996-10-27T01:00:00+0000 3600 CET
171997-03-30T01:00:00+0000 7200 CEST
181997-10-26T01:00:00+0000 3600 CET
19