From andrewb at cse.unsw.edu.au Sat Mar 11 11:10:19 2006 From: andrewb at cse.unsw.edu.au (Andrew Baumann) Date: Sat, 11 Mar 2006 21:10:19 +1100 Subject: [icalendar-dev] bug parsing trigger component of VALARM in 0.11 Message-ID: <200603112110.22296.andrewb@cse.unsw.edu.au> 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