This commit is contained in:
deathbybandaid 2020-12-05 14:56:45 -05:00
parent 895a79315f
commit 831322e181

View File

@ -154,9 +154,10 @@ class OriginEPG():
return duration return duration
def xmltimestamp_toonami(self, inputtime, offset): def xmltimestamp_toonami(self, inputtime, offset):
xmltime = inputtime.replace('Z', offset) xmltime = inputtime.replace('Z', '+00:00')
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')
print(xmltime)
return xmltime return xmltime
def get_prog_timedict(self, starttime, endtime, offset): def get_prog_timedict(self, starttime, endtime, offset):