Closed Bug 283882 Opened 20 years ago Closed 19 years ago

Holidays from Apple holiday file appear incorrectly [has YEARLY BYMONTH BYDAY rule]

Categories

(Calendar :: Internal Components, defect)

Sunbird 0.2
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED WORKSFORME

People

(Reporter: carlseibert, Assigned: mostafah)

References

()

Details

User-Agent:       Mozilla/4.0 (compatible; MSIE 6.0; X11; Linux i686) Opera 7.53  [en]
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8a5) Gecko/20050203 Mozilla Sunbird/0.2

Holidays which are not date-certain from the above holidays file appear incorrectly in Mozilla 
Calendar (Mac, and Windows) and Sundbird (Linux). Mother's Day 2005, for example appears on 
Thursday, May 12. Properties for Mother's Day, as read by the Macintosh iCal application, list 
recurrence as the second Sunday in may each year. The Mozilla Calendar GUI doesn't make 
reference to such a recurrence pattern, so I suspect it's unsupposerted. Further, the Mozilla US 
Holidays file (http://www.mozilla.org/projects/calendar/caldata/USHolidays.ics) does not appear in 
the Mac iCal application at all. This behavior is probably due to the iCal compatibility bug I just filed 
and only coincidentally affects the holiday file.

Reproducible: Always

Steps to Reproduce:
1.subscribe to holiday file above
2.
3.

Actual Results:  
Holidays not fixed by date (Mother's day, Federal Holidays) do not appear on the correct dates. 
Date based holidays (Christmas) appear where they era supposed to.

Expected Results:  
Render holidays on correct dates.

There appears to be a bi-directional issue involving .ics files from the two vendors, but I feel that the 
Macintosh iCal application's failure to read Mozilla .ics files is actually another bug, possibly in the 
Macintosh application. I will attempt to make a bug report there, but I won't hold my breath about 
their developers responding in a timely manner :-)
In US32Holidays, the recurrence rule RRULE for mother's day is
FREQ=YEARLY;INTERVAL=1;BYMONTH=5;BYDAY=2SU
http://ical.mac.com/ical/US32Holidays.ics

In USHolidays, the recurrence rule RRULE for mother's day is
FREQ=MONTHLY;INTERVAL=12;BYDAY=2SU
http://www.mozilla.org/projects/calendar/caldata/USHolidays.ics

The second works in sunbird 0.2 where the first fails, so the recurrence
implementation of sunbird appears to be incomplete, but there is a workaround.

(Another set of US holidays and observances can be found at
http://www.geocities.com/gekacheka/calendars/GuidelinesForMultipleCalendars.html
They may have been written by more recent version of MozCal than the USHolidays
file, and have different line spacing and handling of extension properties. 
Does Apple iCal like these better? 
If not, does Apple iCal require that the subscribed calendar file have an
internal name, the nonstandard X-WR-CALNAME property that mozilla calendars do
not have? [if so, bug 168176 is related.])
Status: UNCONFIRMED → NEW
Component: General → libical
Ever confirmed: true
Summary: Holidays from Apple holiday file appear incorrectly → Holidays from Apple holiday file appear incorrectly [has YEARLY BYMONTH BYDAY rule]
Version: unspecified → Sunbird 0.2RC2
(In reply to comment #1)

I tried one of the calendars on your site with no joy. iCal didn't like it any better. If access to a Mac 
is a problem, I'd be happy to try a test file with an internal name for you. -Carl


Likewise, the MacOS X iCal program is unable to load the Mozilla US Holidays
file ... it fails without error, displaying no holidays.

http://www.mozilla.org/projects/calendar/caldata/USHolidays.ics
(In reply to comment #3)
> Likewise, the MacOS X iCal program is unable to load the Mozilla US Holidays
> file ... it fails without error, displaying no holidays.
> 
> http://www.mozilla.org/projects/calendar/caldata/USHolidays.ics

My mistake, I just noticed the redundancy of my comment ... please ignore.
Appears to be a problem with calculated holidays and not fixed dates.
(In reply to comment #5)
> Appears to be a problem with calculated holidays and not fixed dates.

Doh! Sorry for the redundancy.  Bugzilla should put the comment box below the
comments. ;-)
QA Contact: gurganbl → libical
WFM in current nightly builds.
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → WORKSFORME
Component: libical → Internal Components
The bugspam monkeys have been set free and are feeding on Calendar :: Internal Components. Be afraid for your sanity!
QA Contact: libical → base
Status: RESOLVED → VERIFIED
Version: Sunbird 0.2RC2 → Sunbird 0.2
You need to log in before you can comment on or make changes to this bug.