Annotation of embedaddon/php/ext/date/tests/bug35425.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Bug #35425 (idate() function ignores timezone settings)
3: --INI--
4: date.timezone=America/Montreal
5: --FILE--
6: <?php
7:
8: $time = mktime(1,1,1,1,1,2005);
9: foreach (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--
15: int(292)
16: int(1)
17: int(1)
18: int(1)
19: int(1)
20: int(0)
21: int(0)
22: int(1)
23: int(1)
24: int(31)
25: int(1104559261)
26: int(6)
27: int(53)
28: int(5)
29: int(2005)
30: int(0)
31: int(-18000)
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>