test
This commit is contained in:
parent
33108f9e97
commit
c143a40558
@ -161,9 +161,9 @@ class OriginEPG():
|
|||||||
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)
|
print(xmltime)
|
||||||
"20201205000100 -0300"
|
|
||||||
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')
|
||||||
print(xmltime)
|
print(xmltime)
|
||||||
return xmltime
|
return xmltime
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user