From 2a2f532d19b757af507dee98b434036c9855a5ad Mon Sep 17 00:00:00 2001 From: Alan Hamlett Date: Wed, 13 Nov 2013 10:08:13 -0800 Subject: [PATCH] fix #9 replace comma with period when serializing time float --- plugin/wakatime.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/wakatime.vim b/plugin/wakatime.vim index 5fe52f4..0447f77 100644 --- a/plugin/wakatime.vim +++ b/plugin/wakatime.vim @@ -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']