mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-03-11 08:55:31 +00:00
BF: correct scope for datetime.now
This commit is contained in:
parent
37de5462be
commit
b3cd5ca807
1 changed files with 1 additions and 1 deletions
|
|
@ -77,7 +77,7 @@ class MyTime:
|
||||||
#@staticmethod
|
#@staticmethod
|
||||||
def now():
|
def now():
|
||||||
if MyTime.myTime is None:
|
if MyTime.myTime is None:
|
||||||
return datetime.now()
|
return datetime.datetime.now()
|
||||||
else:
|
else:
|
||||||
return datetime.datetime.fromtimestamp(MyTime.myTime)
|
return datetime.datetime.fromtimestamp(MyTime.myTime)
|
||||||
now = staticmethod(now)
|
now = staticmethod(now)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue