tpope / vim-speeddating

speeddating.vim: use CTRL-A/CTRL-X to increment dates, times, and more
http://www.vim.org/scripts/script.php?script_id=2120
969 stars 40 forks source link

Fix localtime() in neovim #23

Closed aschrab closed 5 years ago

aschrab commented 8 years ago

In neovim reltime() is based on the system uptime rather than the epoch so it can't be used to get the local time. Use the same fallback as is used for non-Unix systems instead. This means that %k won't support milliseconds as added in d03fc1a, but at least larger units of time should be correct.