novendraap / enh

Automatically exported from code.google.com/p/enh
0 stars 0 forks source link

timestamp with TZID #24

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create an ics-file with timestamps that have a TZID like this:

DTSTAMP;TZID=Europe/Berlin:20101224T211521
DTSTART;TZID=Europe/Berlin:20110116T110000
DTEND;TZID=Europe/Berlin:20110116T130000

What is the expected output? What do you see instead?

The ics-file should be parsed correctly according to RFC 5545
http://tools.ietf.org/html/rfc5545

Instead I get this error message:

iCal file could not be parsed
Error at line 8:Cannot set
timezone for UTC properties
(line 8 is the DTSTAMP-field, see example above...)

What version of the product are you using? On what operating system?
Software-version = latest version from market as of just now =)
OS = Android Froyo
Smartphone = HTC Desire

A list of TZIDs can be found here:
http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/zone_tzid.html

Original issue reported on code.google.com by badminto...@googlemail.com on 24 Dec 2010 at 8:30

GoogleCodeExporter commented 9 years ago
Found the following wrt. using a TZID:

#################################
This property parameter specifies a text value that uniquely identifies the 
"VTIMEZONE" calendar component to be used when evaluating the time portion of 
the property. [...] An individual "VTIMEZONE" calendar component MUST be 
specified for each unique "TZID" parameter value specified in the iCalendar 
object.
#################################
see http://tools.ietf.org/html/rfc5545#page-27

-> will try this and report later on

Original comment by badminto...@googlemail.com on 25 Dec 2010 at 12:19

GoogleCodeExporter commented 9 years ago
The error message mentioned above occurs with app "iCal Import/Export".

Ics Bot just crashes instead...

Inserting a VTIMEZONE definition solves this!

This works e.g. for TZID=Europe/Berlin:

BEGIN:VTIMEZONE
TZID:Europe/Berlin
X-LIC-LOCATION:Europe/Berlin
BEGIN:DAYLIGHT
TZOFFSETFROM:+0100
TZOFFSETTO:+0200
TZNAME:CEST
DTSTART:20020331T020000
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU
END:DAYLIGHT
BEGIN:STANDARD
TZOFFSETFROM:+0200
TZOFFSETTO:+0100
TZNAME:CET
DTSTART:20021027T030000
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU
END:STANDARD
END:VTIMEZONE

Original comment by badminto...@googlemail.com on 25 Dec 2010 at 2:26

GoogleCodeExporter commented 9 years ago
IcsBot is dead.

Original comment by elliott....@gmail.com on 5 Nov 2012 at 2:04