Closed Bug 236445 Opened 22 years ago Closed 22 years ago

missing events in certain month when setting Monday for first day of the week

Categories

(Calendar :: General, defect)

x86
All
defect
Not set
minor

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: martin.mcdowell, Assigned: mostafah)

Details

Attachments

(2 files, 1 obsolete file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113 Using Clandar 1.6 for Mozilla I had a problem displaying events in the March 2004 view when I select in Edit-Preferences-Calendar-Views-General First day of the week is Monday. If I return the value back to Sunday, I can again see all the March events. This bug must be specific to the March view as when I look at the February or April views I cann see some of the March events that can be viewed in the adjacent month views. Reproducible: Always Steps to Reproduce: 1.Install Mozilla 1.6 2.Install Mozilla Calendar 1.6 3.Set First day of the week is Monday (instead of the default value Sunday) Actual Results: Events in the March 2004 month view dissapeared Expected Results: Shown all the events in the March view
Can you please attach the ics file or at least copy paste one event here?
Hi Mostafa I doubt this bug is due to the even as there are many loaded events from calendars on the web http://mozilla.org/projects/calendar/holidays.html I have some of my own events together with Slovenian and UK holidays. Regardles of the event belonging to a certain calendat none can be seen in the March view if the week starts with Monday. Anyway, here is an example of a March event: BEGIN:VCALENDAR VERSION :2.0 PRODID :-//Mozilla.org/NONSGML Mozilla Calendar V1.0//EN METHOD :PUBLISH BEGIN:VEVENT UID :dc7eab00-661e-11d8-9e2c-e7fb0718e76a SUMMARY :Zimska oprema - konec STATUS :CONFIRMED CLASS :PRIVATE X-MOZILLA-ALARM-DEFAULT-LENGTH :0 X-MOZILLA-RECUR-DEFAULT-UNITS :years RRULE :FREQ=YEARLY;INTERVAL=1;BYMONTH=3 DTSTART ;VALUE=DATE :20040315 DTEND ;VALUE=DATE :20040316 DTSTAMP :20040223T163844Z BEGIN:VALARM TRIGGER ;VALUE=DURATION :PT1S END:VALARM END:VEVENT END:VCALENDAR
It's probably a combination issue then since this event shows fine on mine. 1) Do you see any JS errors in the Javascript Console? 2) Try using just one calendar with one event in it ( disable all others ) and see if it shows up. If it does start adding in the other calendars one by one to see if you can find the calendar file which is causing the problem.
Attached file The problematic calendar (obsolete) —
Yes, it does seem it was down to one of the calendars I created. If that calendar was active (ticket) then NO events were displayed, regardless of the calendar they were in. Can anyone analyze what is wrong with this file, would it be possible if Mozilla Calendar could debug such seemingly corrupt calendar files?
Severity: major → minor
Confirming. Even multiweek stops working when the first week starts on March 1, no events are drawn. When I move a week forward everything is visible.
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Windows XP → All
Noticed one more thing: there is an event six years long in the file, and it's set to recur every month. It doesn't explain anything, but I bet it's got something to do with the problem. Title of event: Oddaj mesečno poročilo!
Using the original calendar file I was able to generate a simpler file with just two events that has the same problem. I too suspected that the 6 year long event was the cause but then realized that it wasn't. With this calendar file, the "March 8th" event does not show up. If the "troublesome event" is changed to be non recurring, "March 8th" will show. Interesting point is that "troublesome event" will still show up on Feb 29th although it is non recurring.
Attachment #142917 - Attachment is obsolete: true
Attached patch Fix — — Splinter Review
This fixes the enormous mistake in the backend.
Patch checked into CVS.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Great effort Mostafa :-)
The bugspam monkeys have been set free and are feeding on Calendar :: General. Be afraid for your sanity!
QA Contact: gurganbl → general
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: