Fix arrival times from utc to local time

This commit is contained in:
Juhana Luomanen
2017-10-31 18:27:48 +02:00
parent 7fb984df83
commit abae8d9506
+1 -1
View File
@@ -57,7 +57,7 @@ def fetch():
elif time_diff < settings.HSL_HURRY_THRESHOLD:
time = '{} min'.format(int(time_diff))
else:
time = datetime.utcfromtimestamp(timestamp).strftime('%H:%M')
time = pytz.utc.localize(datetime.fromtimestamp(timestamp)).strftime('%H:%M')
schedule.append({
'route': route,