Browse Source

s/isoformat/strftime

pull/27/head
Andrei 8 years ago
parent
commit
898ba53f27
  1. 2
      disco/util/snowflake.py

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

Loading…
Cancel
Save