|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-04-05 14:32 UTC] derick@php.net
[2005-04-09 00:08 UTC] cdarklock at injuryfree dot com
[2005-06-16 21:12 UTC] derick@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 05:00:01 2025 UTC |
Description: ------------ strtotime() in error when DST is bridged. Code illustrates bug Reproduce code: --------------- echo date('D Y/m/d/H:i:s', time()). "<br>"; echo date('D Y/m/d/H:i:s', strtotime('last saturday')). "<br>"; echo date('D Y/m/d/H:i:s', strtotime("last sunday")). "<br>"; echo date('D Y/m/d/H:i:s', strtotime('last monday')). "<br>"; Expected result: ---------------- Tue 2005/04/05/08:15:48 Sat 2005/04/02/00:00:00 Sun 2005/04/03/00:00:00 Mon 2005/04/04/00:00:00 Actual result: -------------- Tue 2005/04/05/08:15:48 Fri 2005/04/01/23:00:00 Sat 2005/04/02/23:00:00 Mon 2005/04/04/00:00:00