simplenote-vim / simplenote.vim

vim plugin to interact with the simplenote service
http://www.vim.org/scripts/script.php?script_id=3582
MIT License
368 stars 31 forks source link

Bug with timestamp of updated notes #45

Closed 0xgrm closed 10 years ago

0xgrm commented 11 years ago

Timestamp of newly created notes are corrects. Timestamp of updated notes are buggy.

A workaround I found is to replace the line 245 with that : note["modifydate"] = int(round(time.time()))

atomicules commented 11 years ago

According to the Simplenote API 2.1.5 the time should be in seconds. Hence the *1000 in the code. I'm not seeing any problems with the modified date. What OS, etc did you see this on?

atomicules commented 10 years ago

Belatedly realising you were right (whatever the API says) after doing some work on simplenote.py - apologies. Will fix this soon.

atomicules commented 10 years ago

Also, realising I'm an idiot:

According to the Simplenote API 2.1.5 the time should be in seconds. Hence the *1000 in the code

But according to Python:

time.time()

Return the time as a floating point number expressed in seconds since the epoch

Since this also affects simplenote.py, fixing there before here