This commit is contained in:
deathbybandaid 2020-12-05 15:19:43 -05:00
parent c143a40558
commit 856ffa8490

View File

@ -160,11 +160,9 @@ class OriginEPG():
xmltime = datetime.datetime.fromisoformat(xmltime) xmltime = datetime.datetime.fromisoformat(xmltime)
xmltime = xmltime.strftime('%Y%m%d%H%M%S %z') xmltime = xmltime.strftime('%Y%m%d%H%M%S %z')
if offset != '+00:00': if offset != '+00:00':
print(xmltime)
xmltime = datetime.datetime.strptime(xmltime, "%Y%m%d%H%M%S %z") xmltime = datetime.datetime.strptime(xmltime, "%Y%m%d%H%M%S %z")
xmltime = xmltime.astimezone(pytz.utc) xmltime = xmltime.astimezone(pytz.utc)
xmltime = xmltime.strftime('%Y%m%d%H%M%S %z') xmltime = xmltime.strftime('%Y%m%d%H%M%S %z')
print(xmltime)
return xmltime return xmltime
def get_prog_timedict(self, starttime, endtime, offset): def get_prog_timedict(self, starttime, endtime, offset):