ID: 24941
Updated by: [EMAIL PROTECTED]
Reported By: jpage at javeo dot com
-Status: Open
+Status: Bogus
Bug Type: Date/time related
Operating System: Red Hat Linux
PHP Version: 4.3.1
New Comment:
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. Because of this, we hope you add your comments
to the existing bug instead.
Thank you for your interest in PHP.
Same bug as 2 other strtotime() bugs, which are currently opened.
Previous Comments:
------------------------------------------------------------------------
[2003-08-04 17:31:17] jpage at javeo dot com
Typo:
Actual result: both produce Aug 6 2003
------------------------------------------------------------------------
[2003-08-04 17:29:15] jpage at javeo dot com
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 this bug report at http://bugs.php.net/?id=24941&edit=1