xref: /PHP-8.1/ext/date/tests/bug32588.phpt (revision 7aacc705)
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?>
12--EXPECT--
13Sat 2005/04/02/00:00:00
14Sun 2005/04/03/00:00:00
15Mon 2005/04/04/00:00:00
16