Ticket #503 (closed Bug: fixed)
Calendar Library - Number of days in the previous month
| Reported by: | dyron | Owned by: | Shadowhand |
|---|---|---|---|
| Priority: | minor | Milestone: | 2.1.2 |
| Component: | Libraries | Version: | SVN HEAD |
| Keywords: | calendar | Cc: |
Description
There is an argument missing in the calendar lib line 79:
$n = (int) date('t', mktime(1, 0, $this->month - 1, 1, $this->year));
It should be
$n = (int) date('t', mktime(1, 0, 0, $this->month - 1, 1, $this->year));
Otherwise the end days are miscalculated.
Change History
Note: See
TracTickets for help on using
tickets.
