small bugs in get_calendar()
-
In block
if ($next)that generates link to next month, the presented words for the link should be$month_abbrev[$month[zeroise($next->month, 2)]]instead ofsubstr($month[zeroise($next->month, 2)], 0, 3).
Also, what are assigned to$thisyearand$thismonthshould begmdate('Y', current_time('timestamp'))andgmdate('m', current_time('timestamp'). Thegmt_offsetis not needed here since it’s already been added in thecurrent_time('timestamp').
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘small bugs in get_calendar()’ is closed to new replies.