ID: 24941
User updated by: jpage at javeo dot com
Reported By: jpage at javeo dot com
Status: Bogus
Bug Type: Date/time related
Operating System: Red Hat Linux
PHP Version: 4.3.1
New Comment:

Well I tried to search for similar bugs but did not find any that
struck me as the same. You say there are two but fail to mention which
ones they are. Can you help me out here?

Previous Comments:

[2003-08-04 19:30:46] [email][/email]

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.


[2003-08-04 17:31:17] jpage at javeo dot com

Actual result: both produce Aug 6 2003


[2003-08-04 17:29:15] jpage at javeo dot com

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);


$r=strtotime("second wednesday",$t);

Expected result:
two different dates a week apart

Actual result:
Wed Aug for both


Edit this bug report at [url][/url]