|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-08-04 17:31 UTC] jpage at javeo dot com
[2003-08-04 19:30 UTC] iliaa@php.net
[2003-08-04 20:25 UTC] jpage at javeo dot com
[2003-08-04 20:32 UTC] iliaa@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 18 22:00:01 2025 UTC |
Description: ------------ strtotime() returns the same result for "first wednesday" and "second wednesday". I ran this against 'today' - Aug 4 2003, but the code below should show the error on any day. Reproduce code: --------------- $t=strtotime("Aug 3 2003"); $r=strtotime("first wednesday",$t); print(date('r',$r)); print("<br>"); $r=strtotime("second wednesday",$t); print(date('r',$r)); Expected result: ---------------- two different dates a week apart Actual result: -------------- Wed Aug for both