From 60a40173ba0fce208e39f66c9b25f24017c14a2d Mon Sep 17 00:00:00 2001 From: boyska Date: Fri, 29 Jun 2018 15:19:50 +0200 Subject: [PATCH] FIX errore su date mancanti dopo modifiche recenti --- plugins/talks.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/talks.py b/plugins/talks.py index 2f697ac..d9a0c48 100644 --- a/plugins/talks.py +++ b/plugins/talks.py @@ -201,7 +201,8 @@ class TalkListDirective(Directive): ''' d = get_talk_data(name) room = d.get('room', '') - time = d.get('time', datetime.datetime(1, 1, 1)) + time = d.get('time', datetime.datetime(1, 1, 1).replace( + tzinfo=dateutil.tz.gettz('Europe/Rome'))) title = d.get('title', '') return (time, room, title)