From 7cc72349c1824d24f8beca264caa97b6dd5facf1 Mon Sep 17 00:00:00 2001 From: Georges Toth Date: Tue, 30 Jul 2019 01:13:08 +0200 Subject: [PATCH] wrong variable --- pymisp/aping.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pymisp/aping.py b/pymisp/aping.py index 329d235..f3486c1 100644 --- a/pymisp/aping.py +++ b/pymisp/aping.py @@ -1703,7 +1703,7 @@ class ExpandedPyMISP(PyMISP): def _make_timestamp(self, value: DateTypes): '''Catch-all method to normalize anything that can be converted to a timestamp''' if isinstance(value, datetime): - return datetime.timestamp() + return value.timestamp() elif isinstance(value, date): return datetime.combine(value, datetime.max.time()).timestamp() elif isinstance(value, str):