Update TD

This commit is contained in:
Fred Boniface 2023-07-02 20:46:22 +01:00
parent d54ecf0733
commit 4056d962e9
1 changed files with 2 additions and 1 deletions

View File

@ -26,6 +26,7 @@ import json
import mongo
import time
from datetime import datetime, timedelta
from zoneinfo import ZoneInfo
# This module downloads a single TOCs Schedule data
now = datetime.now()
@ -199,7 +200,7 @@ def _helpParseDate(string :str, time :str = "false"):
string += " 235959"
else:
string += " 000000"
return datetime.strptime(string, "%Y-%m-%d %H%M%S")
return datetime.strptime(string, "%Y-%m-%d %H%M%S").astimezone(ZoneInfo("Europe/London"))
def _removeOutdatedServices():
log.out("timetable._removeOutdatedServices: Removing out of date schedules", "INFO")