Home » Date and Time » Date » Bug #727
Date_Calc::weeksInMonth() wrong result
Details
| Submitted | 2004-02-10 21:05 UTC |
|---|---|
| From | paul dot king at mail dot ee |
| Assigned | pajoye |
| Status | Closed |
| Package | Date |
| PHP Version | 4.3.4 |
| OS | Fedora Core 1 |
| Roadmaps | (Not assigned) |
Comments
[2004-02-10 21:05 UTC] paul dot king at mail dot ee
Description:
------------
Return value for Date_Calc::weeksInMonth() is not what it should be for February 2004, DATE_CALC_BEGIN_WEEKDAY defaults to 1
Reproduce code:
---------------
require_once 'Date/Calc.php';
echo Date_Calc::weeksInMonth(2, 2004);
Expected result:
----------------
5
Actual result:
--------------
4
[2004-02-11 18:20 UTC] paul dot king at mail dot ee
Fixed typo in email