ID:               41873
 Updated by:       [EMAIL PROTECTED]
 Reported By:      kevin at creativeanvil dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         Date/time related
 Operating System: RHEL 4
 PHP Version:      5.2.3
 New Comment:

Works perfectly fine here:
10/26/2007
07/27/2007


Previous Comments:
------------------------------------------------------------------------

[2007-07-02 15:13:26] kevin at creativeanvil dot com

Description:
------------
For the last friday of the month for several months it is incorrect. 
Tends to happen when the last day of the month is on the date you're
looking for.

Reproduce code:
---------------
$stamp = strtotime("last Friday", gmmktime(0,0,0,11,0,2007);
echo date("m/d/Y", $stamp)."<br>;

$stamp = strtotime("last Friday", gmmktime(0,0,0,8,0,2007);
echo date("m/d/Y", $stamp);



Expected result:
----------------
11/30/2007
8/31/2007

Actual result:
--------------
11/23/2007
8/24/2007


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=41873&edit=1

Reply via email to