mirror of
https://github.com/fHDHR/fHDHR_NextPVR.git
synced 2025-12-06 17:36:59 -05:00
Reformat xmltv Date
This commit is contained in:
parent
ca96d4de34
commit
86c14c2d9b
@ -99,7 +99,8 @@ class xmlTV():
|
||||
if str(time_value).endswith(tuple(["+0000", "+00:00"])):
|
||||
xmltvtimetamps[time_item] = str(time_value)
|
||||
else:
|
||||
xmltvtimetamps[time_item] = str(datetime.datetime.fromtimestamp(time_value)) + " +0000"
|
||||
timestampval = datetime.datetime.fromtimestamp(time_value)
|
||||
xmltvtimetamps[time_item] = str(timestampval.strftime('%Y%m%d%H%M%S')) + " +0000"
|
||||
|
||||
return xmltvtimetamps
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user