timezone fix

This commit is contained in:
Martin Ness 2014-04-14 16:34:34 +02:00
parent 119c93eda9
commit 6ee89b9c86

View file

@ -32,7 +32,7 @@ class Termin(object):
datum = self.value["DTSTART"]
# wenn keine Zeitzone angeben ist, nehme UTC an
if not datum.tzinfo:
src_zone = pytz.timezone("UTC")
src_zone = pytz.timezone("Europe/Berlin")
datum = src_zone.localize(datum)
# und jetzt umwandeln
dst_zone = pytz.timezone("Europe/Berlin")