From 898ba53f27d46ce2f029cf4878aff2a9cbc789b6 Mon Sep 17 00:00:00 2001 From: Andrei Date: Tue, 25 Apr 2017 07:00:09 -0700 Subject: [PATCH] s/isoformat/strftime --- disco/util/snowflake.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/disco/util/snowflake.py b/disco/util/snowflake.py index 2fa915d..a1e041d 100644 --- a/disco/util/snowflake.py +++ b/disco/util/snowflake.py @@ -21,7 +21,7 @@ def to_unix_ms(snowflake): def from_datetime(date): - return from_timestamp(int(date.isoformat('%s'))) + return from_timestamp(int(date.strftime('%s'))) def from_timestamp(ts):