Fix date parsing for release check

Fixes an issue with date parsing for update check
This commit is contained in:
Jon
2023-11-28 19:07:50 -05:00
committed by GitHub
parent 5ec13d89ec
commit 37fa7fe8a8

View File

@@ -709,9 +709,9 @@ def checkNewVersion():
dateTimeStr = data[0]["published_at"]
realeaseTimestamp = int(datetime.datetime.strptime(dateTimeStr, '%Y-%m-%dT%H:%M:%SZ').strftime('%s'))
releaseTimestamp = int(datetime.datetime.strptime(dateTimeStr, '%Y-%m-%dT%H:%M:%S%z').timestamp())
if realeaseTimestamp > buildTimestamp + 600:
if releaseTimestamp > buildTimestamp + 600:
mylog('none', ["[Version check] New version of the container available!"])
newVersion = True
else: