[icalendar-dev] bug parsing trigger component of VALARM in 0.11
Andrew Baumann
andrewb at cse.unsw.edu.au
Sat Mar 11 11:10:19 CET 2006
Hi,
I seem to have found a bug parsing triggers in alarms, and have narrowed it
down to this ical fragment (extracted from a larger VEVENT generated by
KOrganizer):
>>> import icalendar
>>> str="""
... BEGIN:VALARM
... DESCRIPTION:blah
... ACTION:DISPLAY
... TRIGGER:-PT5M
... END:VALARM
... """
>>> alarm=icalendar.Alarm.from_string(str)
>>> print alarm.decoded('trigger')
-2 days, 0:05:00
This looks broken... it should be -5 minutes. Am I doing something stupid?
Andrew
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://codespeak.net/pipermail/icalendar-dev/attachments/20060311/33341959/attachment.pgp
More information about the icalendar-dev
mailing list