WebGUI
      Click here to register.
      
PBWG Banner


     Report a Bug > WebGUI Bug Tracker

Calendar events spanning across month boundary only show on last month

User Graham
Date 5/25/2007 4:07 pm
Severity Cosmetic (misspelling, formatting problems)
Version WebGUI 7.3.18
Views 220
Rating 2    Rate [
|
]
Karma Rank 0.000000
Previous · Next
User Message
Graham
If a Calendar event spans across a month boundary, it will only show on the second month in month view.  If it crosses two month boundaries, it shows only on the last month.

Back to Top
Rate [
|
]
 
 
colink

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. 



Back to Top
Rate [
|
]
 
 
Graham
Fixed for 7.3.19.


Back to Top
Rate [
|
]