Update TD
This commit is contained in:
parent
d54ecf0733
commit
4056d962e9
@ -26,6 +26,7 @@ import json
|
|||||||
import mongo
|
import mongo
|
||||||
import time
|
import time
|
||||||
from datetime import datetime, timedelta
|
from datetime import datetime, timedelta
|
||||||
|
from zoneinfo import ZoneInfo
|
||||||
|
|
||||||
# This module downloads a single TOCs Schedule data
|
# This module downloads a single TOCs Schedule data
|
||||||
now = datetime.now()
|
now = datetime.now()
|
||||||
@ -199,7 +200,7 @@ def _helpParseDate(string :str, time :str = "false"):
|
|||||||
string += " 235959"
|
string += " 235959"
|
||||||
else:
|
else:
|
||||||
string += " 000000"
|
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():
|
def _removeOutdatedServices():
|
||||||
log.out("timetable._removeOutdatedServices: Removing out of date schedules", "INFO")
|
log.out("timetable._removeOutdatedServices: Removing out of date schedules", "INFO")
|
||||||
|
Reference in New Issue
Block a user