test
This commit is contained in:
parent
5468081d0b
commit
4eb0004318
@ -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):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user