mirror of https://github.com/fail2ban/fail2ban
BF: correct scope for datetime.now
parent
37de5462be
commit
b3cd5ca807
|
@ -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 New Issue