timezone regression

This commit is contained in:
Stefan Kögl 2012-04-25 07:54:48 +02:00
parent 1d7fb7ceee
commit 609a0db123
1 changed files with 2 additions and 2 deletions
TracRendezVous/tracrendezvous/event

View File

@ -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: