ID:               40100
 Updated by:       [EMAIL PROTECTED]
 Reported By:      support at dailytechnology dot net
-Status:           Open
+Status:           Assigned
 Bug Type:         Date/time related
 Operating System: All
 PHP Version:      5.2.0
-Assigned To:      
+Assigned To:      вукшсл


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

Reply via email to