ID: 40100 Updated by: [EMAIL PROTECTED] Reported By: support at dailytechnology dot net -Status: Assigned +Status: Bogus Bug Type: Date/time related Operating System: All PHP Version: 5.2.0 Assigned To: derick 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. Thank you for your interest in PHP. Same as #40003 Previous Comments: ------------------------------------------------------------------------ [2007-01-11 15:14:11] support at dailytechnology dot net Description: ------------ See also: http://bugs.php.net/bug.php?id=40003 Using 'Second Monday Jan 2007' or 'Second Tuesday Feb 2007' will return results ahead one week (occurs only when first occurrence of this weekday coincides with first of month). Reproduce code: --------------- echo date('Y-m-d', strtotime('second monday jan 2007')); echo date('Y-m-d', strtotime('second monday feb 2007')); echo date('Y-m-d', strtotime('second thursday feb 2007')); echo date('Y-m-d', strtotime('second thursday jan 2007')); Expected result: ---------------- 2007-01-08 2007-02-08 2007-02-15 2007-01-11 Actual result: -------------- 2007-01-15 2007-02-12 2007-02-15 2007-01-11 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=40100&edit=1
