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