This commit is contained in:
deathbybandaid 2020-12-05 15:18:31 -05:00
parent 2c1969f53f
commit 33108f9e97

View File

@ -162,7 +162,7 @@ class OriginEPG():
if offset != '+00:00': if offset != '+00:00':
print(xmltime) print(xmltime)
"20201205000100 -0300" "20201205000100 -0300"
xmltime = 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)
print(xmltime) print(xmltime)
return xmltime return xmltime