This commit is contained in:
deathbybandaid 2020-12-05 15:15:43 -05:00
parent 5468081d0b
commit 4eb0004318

View File

@ -1,4 +1,5 @@
import datetime
import pytz
import urllib.parse
@ -158,6 +159,10 @@ class OriginEPG():
xmltime = inputtime.replace('Z', offset)
xmltime = datetime.datetime.fromisoformat(xmltime)
xmltime = xmltime.strftime('%Y%m%d%H%M%S %z')
if offset != '+00:00':
print(xmltime)
xmltime = xmltime.astimezone(pytz.utc)
print(xmltime)
return xmltime
def get_prog_timedict(self, starttime, endtime, offset):