mirror of https://github.com/MISP/PyMISP
fix: properly call datetime.datetime.utcfromtimestamp
parent
346a06c016
commit
f3b8029bb3
|
@ -72,7 +72,7 @@ def _datetime_to_timestamp(d):
|
|||
if sys.version_info >= (3, 3):
|
||||
return d.timestamp()
|
||||
else:
|
||||
return (d - datetime.utcfromtimestamp(0)).total_seconds()
|
||||
return (d - datetime.datetime.utcfromtimestamp(0)).total_seconds()
|
||||
|
||||
|
||||
class MISPAttribute(AbstractMISP):
|
||||
|
|
Loading…
Reference in New Issue