|
Date: 5/26/2007 10:42 pm · Subject: Re: Calendar events spanning across month boundary only show on last month · Rating: 9
The window for the month view is generated by adding 1 month to the start date from the month. That makes the end date the first day of the next month. That day's day of month is 0. If an event spans a month, the end date is set to the end of the window. The final part of viewMonth is a loop that goes from event_start_date->day_of_month_0 .. event_end_date->day_of_month_0. Since the second part of that is 0, the loop doesn't run. It looks like changing the window to +1 month -1 second may work, but it may also have unintended consequences.
|