Annotation of embedaddon/php/ext/date/tests/bug32588.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Bug #32588 (strtotime() error for 'last xxx' DST problem)
3: --INI--
4: date.timezone=America/New_York
5: --FILE--
6: <?php
7:
8: echo date('D Y/m/d/H:i:s', strtotime('last saturday', 1112703348)). "\n";
9: echo date('D Y/m/d/H:i:s', strtotime("last sunday", 1112703348)). "\n";
10: echo date('D Y/m/d/H:i:s', strtotime('last monday', 1112703348)). "\n";
11: --EXPECT--
12: Sat 2005/04/02/00:00:00
13: Sun 2005/04/03/00:00:00
14: Mon 2005/04/04/00:00:00
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>