Annotation of embedaddon/php/ext/date/tests/bug32086.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Bug #32086 (strtotime don't work in DST)
3: --INI--
4: date.timezone=America/Sao_Paulo
5: --FILE--
6: <?php
7:
8: echo $g = strtotime("2004-11-01"), "\n";
9: echo $i = strtotime("2004-11-01 +1 day"), "\n";
10: echo $j = strtotime("+1 day", $g), "\n";
11: echo $k = strtotime("2004-11-02"), "\n";
12: echo $l = strtotime("2004-11-03"), "\n";
13: echo date("Y-m-d H:i:s T\n", $g);
14: echo date("Y-m-d H:i:s T\n", $i);
15: echo date("Y-m-d H:i:s T\n", $j);
16: echo date("Y-m-d H:i:s T\n", $k);
17: echo date("Y-m-d H:i:s T\n", $l);
18:
19: echo $g = strtotime("2005-02-19"), "\n";
20: echo $i = strtotime("2005-02-19 +1 day"), "\n";
21: echo $j = strtotime("+1 day", $g), "\n";
22: echo $k = strtotime("2005-02-20"), "\n";
23: echo $l = strtotime("2005-02-21"), "\n";
24: echo date("Y-m-d H:i:s T\n", $g);
25: echo date("Y-m-d H:i:s T\n", $i);
26: echo date("Y-m-d H:i:s T\n", $j);
27: echo date("Y-m-d H:i:s T\n", $k);
28: echo date("Y-m-d H:i:s T\n", $l);
29:
30: ?>
31: --EXPECT--
32: 1099278000
33: 1099364400
34: 1099364400
35: 1099364400
36: 1099447200
37: 2004-11-01 00:00:00 BRT
38: 2004-11-02 01:00:00 BRST
39: 2004-11-02 01:00:00 BRST
40: 2004-11-02 01:00:00 BRST
41: 2004-11-03 00:00:00 BRST
42: 1108778400
43: 1108868400
44: 1108868400
45: 1108868400
46: 1108954800
47: 2005-02-19 00:00:00 BRST
48: 2005-02-20 00:00:00 BRT
49: 2005-02-20 00:00:00 BRT
50: 2005-02-20 00:00:00 BRT
51: 2005-02-21 00:00:00 BRT
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>