Opened 16 years ago
Closed 15 years ago
Last modified 15 years ago
#7270 closed enhancement (fixed)
ical/ics files created by mythweb do not set the time correctly in google calendar, due to TZ issues - patch attached.
Reported by: | Owned by: | Rob Smith | |
---|---|---|---|
Priority: | minor | Milestone: | 0.24 |
Component: | Plugin - MythWeb | Version: | head |
Severity: | medium | Keywords: | ical ics calendar google |
Cc: | Ticket locked: | no |
Description
Google Calendar is very picky about the data it will accept from an ICS file provided to it via a URL (i.e. subscribing to a calendar).
The attached patch resolves the issue by converting all times to UTC, and setting the TZID to Etc/Universal, which Google seems to like.
This seems to be the least invasive means to get the calendar to work correctly with Google. Another method would be the leave out the TZID, and add a "Z" to the end of the UTC time string, but the vcalendar class doesn't seem to support this natively.
Attachments (1)
Change History (7)
by , 16 years ago
Attachment: | ical-change-to-utc.patch added |
---|
comment:1 by , 16 years ago
Milestone: | unknown → 0.22.1 |
---|
comment:2 by , 16 years ago
Another method would be to use the X-WR-TIMEZONE property of vcalendar. This property is supported by Google calendar, Outlook, and iCal, amongst others I'm sure. The code I put in modules/tv/tmpl/ical/upcoming.php is
$tz = date("e"); $calendar->setProperty( "X-WR-TIMEZONE", $tz );
comment:5 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:6 by , 15 years ago
Unfortunately, this doesn't seem to do the trick for Google. They say they need this, but they also need the much more complex VTIMEZONE/TZID/TZOFFSETFROM/TZOFFSETTO... type entries. I think the original approach of utilizing UTC is much more simplistic, and actually works with Google atrocious ICAL parser.
Patch to convert ical time information to UTC, and set TZID to Etc/Universal