From: Oleg Broytman Date: Thu, 12 Jun 2014 18:23:06 +0000 (+0400) Subject: Fix a bug: convert str to float X-Git-Tag: v4.6.0~30 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=7b4f6fff272251803445b2a10efc461786132f12;p=bookmarks_db.git Fix a bug: convert str to float --- diff --git a/Storage/bkmk_stjson.py b/Storage/bkmk_stjson.py index a08f619..43f5881 100644 --- a/Storage/bkmk_stjson.py +++ b/Storage/bkmk_stjson.py @@ -184,7 +184,7 @@ class storage_json(Walker): def convert_date_to_json(date): if date: - date = int(date * 10**6) + date = int(float(date) * 10**6) return date def convert_date_from_json(date):