From miles at assyrian.org.uk Wed Nov 28 12:30:07 2012 From: miles at assyrian.org.uk (Miles Gould) Date: Wed, 28 Nov 2012 12:30:07 +0000 Subject: [iCalendar-devel] Specifying times in UTC Message-ID: <50B603CF.3020800@assyrian.org.uk> Hi everyone, I'm trying to create times in UTC using the 20121128T123000Z notation, but I'm having no luck with icalendar. I see that the Date#to_ical method takes an optional utc parameter which does the trick, but I can't work out how to set up my calendar so that that parameter is passed as true when I call cal.to_ical. Am I missing something? For now, I've specified { :TZID => "UTC" } on all my dtstart and dtend parameters, producing "DTSTART;TZID=UTC:20121128T123000". Google calendar accepts this, but from what I can find on the Web this is in violation of the iCalendar spec: see http://www.kanzaki.com/docs/ical/dateTime.html under "Form #2: Date with UTC time". Can anyone help? Thanks! Miles