xref: /PHP-8.4/ext/date/tests/bug35425.phpt (revision f8d79582)
1--TEST--
2Bug #35425 (idate() function ignores timezone settings)
3--INI--
4date.timezone=America/Montreal
5--FILE--
6<?php
7
8$time = mktime(1,1,1,1,1,2005);
9foreach (array('B','d','h','H','i','I','L','m','s','t','U','w','W','y','Y','z','Z') as $v) {
10    var_dump(idate($v, $time));
11}
12
13?>
14--EXPECT--
15int(292)
16int(1)
17int(1)
18int(1)
19int(1)
20int(0)
21int(0)
22int(1)
23int(1)
24int(31)
25int(1104559261)
26int(6)
27int(53)
28int(5)
29int(2005)
30int(0)
31int(-18000)
32