fix: properly call datetime.datetime.utcfromtimestamp

pull/160/head
Raphaël Vinot 2017-12-20 14:33:44 +01:00
parent 346a06c016
commit f3b8029bb3
1 changed files with 1 additions and 1 deletions

View File

@ -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):