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