|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-04-08 05:56 UTC] rasmus@php.net
-Status: Open
+Status: Bogus
[2010-04-08 05:56 UTC] rasmus@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 17 11:00:02 2025 UTC |
Description: ------------ When using strtotime to determine the date of a particular day last week or next week using a given value for $now we get results that we would not be expecting. I get the values I am expecting when using PHP 5.3.2 Test script: --------------- $time = mktime(0, 0, 0, 4, 7, 2010); echo date('Y-m-d H:i:s', strtotime('Tuesday last week', $time)); echo "\n"; echo date('Y-m-d H:i:s', strtotime('Tuesday this week', $time)); Expected result: ---------------- 2010-03-30 00:00:00 2010-04-06 00:00:00 Actual result: -------------- 2010-04-06 00:00:00 2010-04-13 00:00:00