1
0
mirror of https://github.com/fHDHR/fHDHR_NextPVR.git synced 2025-12-06 15:16:58 -05:00

Update zap2it to pull UTC

This commit is contained in:
deathbybandaid 2020-10-14 19:49:02 -04:00
parent b9a1ec7152
commit 5959a2ebec

View File

@ -34,7 +34,7 @@ class ZapEPG():
programguide = {}
# Start time parameter is now rounded down to nearest `zap_timespan`, in s.
zap_time = time.mktime(time.localtime())
zap_time = datetime.datetime.utcnow().timestamp()
zap_time_window = int(self.config.dict["zap2it"]["timespan"]) * 3600
zap_time = int(zap_time - (zap_time % zap_time_window))