Fix arrival times from utc to local time
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user