fix #9 replace comma with period when serializing time float

This commit is contained in:
Alan Hamlett 2013-11-13 10:08:13 -08:00
parent b91f1c9bfc
commit 2a2f532d19

View file

@ -81,7 +81,7 @@ let s:VERSION = '1.2.3'
if targetFile != ''
let cmd = ['python', s:plugin_directory . 'packages/wakatime/wakatime-cli.py']
let cmd = cmd + ['--file', shellescape(targetFile)]
let cmd = cmd + ['--time', printf('%f', a:time)]
let cmd = cmd + ['--time', substitute(printf('%f', a:time), ',', '.', '')]
let cmd = cmd + ['--plugin', printf('vim-wakatime/%s', s:VERSION)]
if a:is_write
let cmd = cmd + ['--write']