Ticket #632 (closed Patch: fixed)
Calendar Library - i18n and start_monday patch
| Reported by: | dyron | Owned by: | Shadowhand |
|---|---|---|---|
| Priority: | minor | Milestone: | 2.2 |
| Component: | Libraries | Version: | SVN HEAD |
| Keywords: | Calendar start_monday i18n | Cc: |
Description
Actually for June 2008 if the start_monday ist true, the calendar lib is adding a number at the end.
Line 160:
if (($w = (int) date('w', $first)) > $this->week_start)
in
(($w = (int) date('w', $first) - $this->week_start) < 0) and $w = 6;
if ($w != 0)
and line 166:
for ($i = $n - $w + $this->week_start + 1, $t = $w - $this->week_start; $t > 0; $t--, $i++)
in
for ($i = $n - $w + 1, $t = $w; $t > 0; $t--, $i++)
I hope this works.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
