nvim: plugin/epoch-converter: Use UTC time zone
This commit is contained in:
parent
48e6b25a84
commit
39c8f2890a
1 changed files with 2 additions and 2 deletions
|
@ -1,12 +1,12 @@
|
|||
function GetHumanReadableDate()
|
||||
normal! `<v`>y
|
||||
let date = trim(system("date -d @" . trim(shellescape(@@))))
|
||||
let date = trim(system("date -u -d @" . trim(shellescape(@@))))
|
||||
echo date
|
||||
endfunction
|
||||
|
||||
function GetEpochDate()
|
||||
normal! `<v`>y
|
||||
let date = trim(system("date -d " . trim(shellescape(@@)) . ' "+%s"'))
|
||||
let date = trim(system("date -u -d " . trim(shellescape(@@)) . ' "+%s"'))
|
||||
echo date
|
||||
endfunction
|
||||
|
||||
|
|
Loading…
Reference in a new issue