From 39c8f2890ad73d310cc58130f0cc3cbcc932eb8d Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Thu, 14 Sep 2023 14:17:47 +0530 Subject: [PATCH] nvim: plugin/epoch-converter: Use UTC time zone --- nvim/.config/nvim/plugin/epoch-converter.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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