Home » Date and Time » Calendar » Bug #2633
Calendar_Week thisWeek not working
Details
| Submitted | 2004-10-27 16:31 UTC |
|---|---|
| From | baback_parandian at yahoo dot de |
| Assigned | quipo |
| Status | Closed |
| Package | Calendar |
| PHP Version | 5.0.0RC2 (Release Candidate 2) |
| OS | 2000 |
| Roadmaps | (Not assigned) |
Comments
[2004-10-27 16:31 UTC] baback_parandian at yahoo dot de
Description:
------------
Calendar_Week thisWeek not working.
Expected week in year 2 but got 1.
Reproduce code:
---------------
$cWeek = new Calendar_Week(2004, 1, 5);
$week = $cWeek->thisWeek("n_in_year");
Expected result:
----------------
2
Actual result:
--------------
1
[2004-10-28 10:02 UTC] baback_parandian at yahoo dot de
i read the api once again and sorry i made the mistake
i should have called the constructor like this
$cWeek = new Calendar_Week(2004, 1, 5, 1);
Thank your for your help.