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()
|
function GetHumanReadableDate()
|
||||||
normal! `<v`>y
|
normal! `<v`>y
|
||||||
let date = trim(system("date -d @" . trim(shellescape(@@))))
|
let date = trim(system("date -u -d @" . trim(shellescape(@@))))
|
||||||
echo date
|
echo date
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function GetEpochDate()
|
function GetEpochDate()
|
||||||
normal! `<v`>y
|
normal! `<v`>y
|
||||||
let date = trim(system("date -d " . trim(shellescape(@@)) . ' "+%s"'))
|
let date = trim(system("date -u -d " . trim(shellescape(@@)) . ' "+%s"'))
|
||||||
echo date
|
echo date
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue