#24941 [NEW]: strtotime returns same date for "first wednesday" and "second Wednesday"

From: Date: Mon, 04 Aug 2003 22:29:15 +0000
Subject: #24941 [NEW]: strtotime returns same date for "first wednesday" and "second Wednesday"
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-45348@lists.php.net to get a copy of this message
From: jpage at javeo dot com Operating system: Red Hat Linux PHP version: 4.3.1 PHP Bug Type: Date/time related Bug description: strtotime returns same date for "first wednesday" and "second Wednesday" 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 -- Edit bug report at http://bugs.php.net/?id=24941&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=24941&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=24941&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=24941&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=24941&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=24941&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=24941&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=24941&r=support Expected behavior: http://bugs.php.net/fix.php?id=24941&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=24941&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=24941&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=24941&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24941&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=24941&r=dst IIS Stability: http://bugs.php.net/fix.php?id=24941&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=24941&r=gnused

« previous php.bugs (#45348) next »