Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: MythTV: Commits

Ticket #7270: ical/ics files created by mythweb do not set the time correctly in google calendar, due to TZ issues - patch attached.

 

 

MythTV commits RSS feed   Index | Next | Previous | View Threaded


mythtv at cvs

Oct 7, 2009, 6:26 PM

Post #1 of 3 (69 views)
Permalink
Ticket #7270: ical/ics files created by mythweb do not set the time correctly in google calendar, due to TZ issues - patch attached.

#7270: ical/ics files created by mythweb do not set the time correctly in google
calendar, due to TZ issues - patch attached.
---------------------------------+------------------------------------------
Reporter: matt[at]mossholder.com | Owner: kormoc
Type: enhancement | Status: new
Priority: minor | Milestone: unknown
Component: Plugin - MythWeb | Version: head
Severity: medium | Mlocked: 0
---------------------------------+------------------------------------------
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.

--
Ticket URL: <http://svn.mythtv.org/trac/ticket/7270>
MythTV <http://www.mythtv.org/>
MythTV
_______________________________________________
mythtv-commits mailing list
mythtv-commits[at]mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-commits


mythtv at cvs

Oct 8, 2009, 10:30 PM

Post #2 of 3 (57 views)
Permalink
Re: Ticket #7270: ical/ics files created by mythweb do not set the time correctly in google calendar, due to TZ issues - patch attached. [In reply to]

#7270: ical/ics files created by mythweb do not set the time correctly in google
calendar, due to TZ issues - patch attached.
---------------------------------+------------------------------------------
Reporter: matt[at]mossholder.com | Owner: kormoc
Type: enhancement | Status: new
Priority: minor | Milestone: 0.22.1
Component: Plugin - MythWeb | Version: head
Severity: medium | Resolution:
Mlocked: 0 |
---------------------------------+------------------------------------------
Changes (by kormoc):

* milestone: unknown => 0.22.1


--
Ticket URL: <http://svn.mythtv.org/trac/ticket/7270#comment:1>
MythTV <http://www.mythtv.org/>
MythTV
_______________________________________________
mythtv-commits mailing list
mythtv-commits[at]mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-commits


mythtv at cvs

Nov 7, 2009, 10:39 AM

Post #3 of 3 (21 views)
Permalink
Re: Ticket #7270: ical/ics files created by mythweb do not set the time correctly in google calendar, due to TZ issues - patch attached. [In reply to]

#7270: ical/ics files created by mythweb do not set the time correctly in google
calendar, due to TZ issues - patch attached.
---------------------------------+------------------------------------------
Reporter: matt@… | Owner: kormoc
Type: enhancement | Status: new
Priority: minor | Milestone: 0.22.1
Component: Plugin - MythWeb | Version: head
Severity: medium | Mlocked: 0
---------------------------------+------------------------------------------

Comment(by anonymous):

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 );

--
Ticket URL: <http://svn.mythtv.org/trac/ticket/7270#comment:2>
MythTV <http://www.mythtv.org/>
MythTV
_______________________________________________
mythtv-commits mailing list
mythtv-commits[at]mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-commits

MythTV commits RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.