Default event track is half hour not 30 hours

This is a leftover from revision 9304
where the duration property of events changed unit
from minutes to hours but the defualt value remained 30.
This commit is contained in:
Vicente Jimenez Aguilar 2014-05-19 14:04:01 +02:00
parent f1a1c6e988
commit 3b859c219f
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ class website_event(http.Controller):
forcetr = True
for track in event_track_ids:
start_date = (datetime.datetime.strptime(track.date, '%Y-%m-%d %H:%M:%S')).replace(tzinfo=pytz.utc).astimezone(local_tz)
end_date = start_date + datetime.timedelta(hours = (track.duration or 30))
end_date = start_date + datetime.timedelta(hours = (track.duration or 0.5))
location = track.location_id or False
locations.setdefault(location, [])