From 1ea97795be8f9b8d63c5266ac7ea4889c3224a4d Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Mon, 23 Feb 2015 10:43:54 +0100 Subject: Add support for UTC times in iCal imports According to the iCal standard (4.3.12 Time): UTC time, or absolute time, is identified by a LATIN CAPITAL LETTER Z suffix character (US-ASCII decimal 90), the UTC designator, appended to the time value. Parse such time values properly when importing iCal files. Fixes GitHub issue #3. Signed-off-by: Lukas Fleischer --- test/data/ical-007.ical | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 test/data/ical-007.ical (limited to 'test/data') diff --git a/test/data/ical-007.ical b/test/data/ical-007.ical new file mode 100644 index 0000000..e46c3fb --- /dev/null +++ b/test/data/ical-007.ical @@ -0,0 +1,13 @@ +BEGIN:VCALENDAR +VERSION:2.0 +BEGIN:VEVENT +SUMMARY:Local time +DTSTART:20150223T110000 +DURATION:PT1H +END:VEVENT +BEGIN:VEVENT +SUMMARY:UTC +DTSTART:20150223T110000Z +DURATION:PT1H +END:VEVENT +END:VCALENDAR -- cgit v1.2.3-54-g00ecf