[Vobject] Problem with Timezones and iCalendar
Florian Heuberger
fheub at gmx.at
Fri Jan 14 05:15:47 CST 2011
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Alexander,
did you - or anyone else - find a solution for this
vobject/serializing/pytz-issue?
> import datetime
> import pytz
> import vobject
>
> dt = datetime.datetime(2010,7,1,10,0,0)
> de = pytz.timezone('Europe/Berlin')
>
> cal = vobject.iCalendar()
> event = cal.add('vevent')
> event.add('dtstart').value = de.localize(dt)
>
> cal.serialize()
>
> It will give me the following error:
[snip]
> pytz.tzinfo.NonExistentTimeError: 2000-03-26 02:00:00
I have encountered the same problem on Fedora 14 using
python.x86_64 2.7-8.fc14.1
python-dateutil.noarch 1.4.1-5.fc14
python-vobject.noarch 0.8.1c-3.fc14
pytz.noarch 2010h-3.fc14
Thank you for your consideration!
Florian
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/
iEYEARECAAYFAk0wMGMACgkQng3862jE6FzaegCgibUUTtyVUaMj7EMKu1PtQx4J
p48AoKfAYcCcE3+DjeNGXNEEcxvg3CjL
=JmhC
-----END PGP SIGNATURE-----
More information about the VObject
mailing list