PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Date and Time » Date » Bug #727

Date_Calc::weeksInMonth() wrong result

Details

Submitted2004-02-10 21:05 UTC
Frompaul dot king at mail dot ee
Assignedpajoye
StatusClosed
PackageDate
PHP Version4.3.4
OSFedora 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