I found an error in the ics when the date entry options are set to -0 years from now or + 0 year from now.

this causes the ici to read
DTSTART:00000708T100000Z
DTEND:00000708T200000Z
when it should read
DTSTART:20120531T100000Z
DTEND:20120531T200000Z
and thus the file is un-importable for mac's ical at least

best to set the date entry options one year forward and one year backwards
I lost a lot of hair over this

best
stevie

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

stevieb’s picture

Priority: Major » Minor
shahidbscs’s picture

i have some events in site but .ics file not work mac. error screen shot is attached.
File source is:
BEGIN:VCALENDAR
VERSION:2.0
METHOD:PUBLISH
X-WR-CALNAME;VALUE=TEXT:OA New Oak
PRODID:-//Drupal iCal API//EN
BEGIN:VEVENT
UID:calendar.412.field_upcoming_events_date.0
SUMMARY:Oasis Academy New Oak Festival and Grand Opening
DTSTAMP:20120920T074539Z
DTSTART:20120921T100000Z
DTEND:20120921T150000Z
URL;VALUE=URI:http://oasisacademynewoak.org/content/oasis-academy-new-oak-festival-and...
END:VEVENT
BEGIN:VEVENT
UID:calendar.413.field_upcoming_events_date.0
SUMMARY:Family Assembly all welcome
DTSTAMP:20120920T074539Z
DTSTART:20120928T090000Z
DTEND:20120928T090000Z
URL;VALUE=URI:http://oasisacademynewoak.org/content/family-assembly-all-welcome
END:VEVENT
BEGIN:VEVENT
UID:calendar.414.field_upcoming_events_date.0
SUMMARY:Jeans for Genes Day
DTSTAMP:20120920T074539Z
DTSTART:20121005T083000Z
DTEND:20121005T160000Z
URL;VALUE=URI:http://oasisacademynewoak.org/content/jeans-genes-day
END:VEVENT
BEGIN:VEVENT
UID:calendar.415.field_upcoming_events_date.0
SUMMARY:Deaf Awareness Week
DTSTAMP:20120920T074539Z
DTSTART:20121008T090000Z
DTEND:20121012T160000Z
URL;VALUE=URI:http://oasisacademynewoak.org/content/deaf-awareness-week
END:VEVENT
BEGIN:VEVENT
UID:calendar.427.field_upcoming_events_date.0
SUMMARY:October Half Term
DTSTAMP:20120920T074539Z
DTSTART:20121024T153000Z
DTEND:20121105T090000Z
URL;VALUE=URI:http://oasisacademynewoak.org/content/october-half-term
END:VEVENT
BEGIN:VEVENT
UID:calendar.416.field_upcoming_events_date.0
SUMMARY:Family Assembly all welcome
DTSTAMP:20120920T074539Z
DTSTART:20121026T090000Z
DTEND:20121026T090000Z
URL;VALUE=URI:http://oasisacademynewoak.org/content/family-assembly-all-welcome-0
END:VEVENT
BEGIN:VEVENT
UID:calendar.421.field_upcoming_events_date.0
SUMMARY:Family Assembly all welcome
DTSTAMP:20120920T074539Z
DTSTART:20121130T090000Z
DTEND:20121130T090000Z
URL;VALUE=URI:http://oasisacademynewoak.org/content/family-assembly-all-welcome-2
END:VEVENT
BEGIN:VEVENT
UID:calendar.428.field_upcoming_events_date.0
SUMMARY:Christmas Holidays
DTSTAMP:20120920T074539Z
DTSTART:20121221T160000Z
DTEND:20130107T090000Z
URL;VALUE=URI:http://oasisacademynewoak.org/content/christmas-holidays
END:VEVENT
BEGIN:VEVENT
UID:calendar.424.field_upcoming_events_date.0
SUMMARY:Family Assembly all welcome
DTSTAMP:20120920T074539Z
DTSTART:20130222T090000Z
DTEND:20130222T090000Z
URL;VALUE=URI:http://oasisacademynewoak.org/content/family-assembly-all-welcome-5
END:VEVENT
END:VCALENDAR

shahidbscs’s picture

i found issue on site name line
BEGIN:VCALENDAR
VERSION:2.0
METHOD:PUBLISH

X-WR-CALNAME;VALUE=TEXT:OA New Oak


when i remove spaces manually from file it work perfectly on mac.
i think mac iCal not support with space name.

shahidbscs’s picture

i set year -3 & +3 from now it work on window outlook, google calendar But not on mac ical.

when i try to edit downloaded file on mac (eg delete "abc" from text & again write "abc" in file then it work perfect on mac.
i see date_ical module set header "charset=utf-8".
one thing be noted it work on mac with other .ics reader like (sunbird) but same problem with mac ical.
screen shot attached.
thanks in advance.

coredumperror’s picture

Status: Active » Postponed (maintainer needs more info)

Please try the new 7.x-2.x branch of Date iCal, and comment on this issue again if you're still seeing this problem. It *may* be an issue with the way Date iCal outputs endlines, which I believe will be fixed by upgrading to 7.x-2.x.

coredumperror’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

I'm closing this issue as part of some spring cleaning. If this has not, in fact, been solved, please re-open the issue with an explanation.

creatile’s picture

I have still an issue on imac calendar app
There are some blank lines at the top of ics file so the app does not recognize the file