]> git.phdru.name Git - bookmarks_db.git/commitdiff
Fix a bug: convert str to float
authorOleg Broytman <phd@phdru.name>
Thu, 12 Jun 2014 18:23:06 +0000 (22:23 +0400)
committerOleg Broytman <phd@phdru.name>
Thu, 12 Jun 2014 18:23:06 +0000 (22:23 +0400)
Storage/bkmk_stjson.py

index a08f61910a4415d76b8b64c51a0443070d4b3cbf..43f5881183ba14cb12e54ed18b96b9bd267f3a7c 100644 (file)
@@ -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):