bug32588.phpt 426 B

123456789101112131415
  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. echo date('D Y/m/d/H:i:s', strtotime('last saturday', 1112703348)). "\n";
  8. echo date('D Y/m/d/H:i:s', strtotime("last sunday", 1112703348)). "\n";
  9. echo date('D Y/m/d/H:i:s', strtotime('last monday', 1112703348)). "\n";
  10. ?>
  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