From f3b8029bb37790c7c8bba3c5ec47ab3879423d0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Wed, 20 Dec 2017 14:33:44 +0100 Subject: [PATCH] fix: properly call datetime.datetime.utcfromtimestamp --- pymisp/mispevent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pymisp/mispevent.py b/pymisp/mispevent.py index c683efb..71dece1 100644 --- a/pymisp/mispevent.py +++ b/pymisp/mispevent.py @@ -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):