mirror of
https://gitlab.com/bashrc2/epicyon
synced 2026-11-04 19:52:33 +00:00
Tidying
This commit is contained in:
1 parent
f0cc2359ad
commit
d9c8dc46c2
1 file changed
+1
-1
+1
-1
@@ -125,8 +125,8 @@ def verifyRecentSignature(signedDateStr: str) -> bool:
|
||||
"""
|
||||
currDate=datetime.datetime.utcnow()
|
||||
signedDate=datetime.datetime.strptime(signedDateStr,"%a, %d %b %Y %H:%M:%S %Z")
|
||||
# 12 hours tollerance
|
||||
timeDiffSec=(currDate-signedDate).seconds
|
||||
# 12 hours tollerance
|
||||
if timeDiffSec > 43200:
|
||||
print('WARN: Header signed too long ago: '+signedDateStr)
|
||||
print(str(timeDiffSec/(60*60))+' hours')
|
||||
|
||||
Reference in new issue
Block a user