diff --git a/nvim/.config/nvim/plugin/epoch-converter.vim b/nvim/.config/nvim/plugin/epoch-converter.vim index 8fe3e80..ce26235 100644 --- a/nvim/.config/nvim/plugin/epoch-converter.vim +++ b/nvim/.config/nvim/plugin/epoch-converter.vim @@ -1,12 +1,12 @@ function GetHumanReadableDate() normal! `y - let date = trim(system("date -d @" . trim(shellescape(@@)))) + let date = trim(system("date -u -d @" . trim(shellescape(@@)))) echo date endfunction function GetEpochDate() normal! `y - let date = trim(system("date -d " . trim(shellescape(@@)) . ' "+%s"')) + let date = trim(system("date -u -d " . trim(shellescape(@@)) . ' "+%s"')) echo date endfunction