|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-06-28 02:29 UTC] devans14 at gmail dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 04 03:00:01 2025 UTC |
Description: ------------ When trying to find strtotime("last Sunday", $DATE) it will sometimes generate a date on a Saturday instead of a Sunday, but only happens around the 1st week of April of any year (I tested 2006-2010). Reproduce code: --------------- <?php $a=strtotime("20060403"); $b=strtotime("last Sunday", $a); echo date("Y/m/d", $b); ?> Expected result: ---------------- 2006/04/02 Actual result: -------------- 2006/04/01 A Saturday