From 609a0db1236e03cb94cbdb237230125dfd1e5404 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20K=C3=B6gl?= Date: Wed, 25 Apr 2012 07:54:48 +0200 Subject: [PATCH] timezone regression --- TracRendezVous/tracrendezvous/event/model.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TracRendezVous/tracrendezvous/event/model.py b/TracRendezVous/tracrendezvous/event/model.py index 416c6cd..6b26fb7 100644 --- a/TracRendezVous/tracrendezvous/event/model.py +++ b/TracRendezVous/tracrendezvous/event/model.py @@ -799,8 +799,8 @@ END:VALARM""" % (event.name, event.name)] return res for row in rows: e_id, name, author, time_created, time_modified, time_begin, time_end, location_id, initial_e_id, tags, attendees, is_periodic, wikipage = row - time_begin = datetime.utcfromtimestamp(time_begin) - time_end = datetime.utcfromtimestamp(time_end) + time_begin = utc.localize(datetime.utcfromtimestamp(time_begin)) + time_end = utc.localize(datetime.utcfromtimestamp(time_end)) delta = time_end - time_begin rrules = EventRRule.fetch_by_event_rrules(env, e_id, time_begin) if not rrules: