Merge pull request #50 from vice/master
authorFabien Pinckaers <fp@openerp.com>
Tue, 20 May 2014 07:47:49 +0000 (09:47 +0200)
committerFabien Pinckaers <fp@openerp.com>
Tue, 20 May 2014 07:47:49 +0000 (09:47 +0200)
Default event track is half hour not 30 hours

addons/website_event_track/controllers/event.py

index 4a3d814..64df05e 100644 (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, [])