[Vobject] no TZ info in parsed dates?
Bill Janssen
janssen at parc.com
Tue Jun 9 14:09:58 CDT 2009
Hi. I'm wondering why there's no timezone info in my parsed iCalendar
vevents?
Is there some initialization step I'm omitting? This is vobject 0.8.1c
with Python 2.5 on OS X 10.5.7.
Bill
>>> e.contents.get("dtstart")
[<DTSTART{'X-VOBJ-ORIGINAL-TZID': [u'Pacific Standard Time']}2009-06-12 10:00:00>]
>>> e.dtstart.value
datetime.datetime(2009, 6, 12, 10, 0)
>>> e.dtstart.value.tzinfo
>>> e.dtstart.value.isoformat()
'2009-06-12T10:00:00'
>>>
More information about the VObject
mailing list