From 73aa0e97523a2ab9130b80e6046de0b9221fcb03 Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Thu, 25 Aug 2022 01:14:39 +0200 Subject: [PATCH] vim:keys: Use RFC 3339 when converting unix times Use a format conforming to RFC 3339 instead of following the systems locale. --- .config/vim/vimrc.d/40-keys.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/vim/vimrc.d/40-keys.vim b/.config/vim/vimrc.d/40-keys.vim index dd3cc90..1fc4c6f 100644 --- a/.config/vim/vimrc.d/40-keys.vim +++ b/.config/vim/vimrc.d/40-keys.vim @@ -203,5 +203,5 @@ nmap Q gqap " Convert Unix timestamp to human readable " Mnemonic: "Unix timestamp convert" with pun to UTC -nnoremap utc ciw=strftime("%c", @") +nnoremap utc ciw=strftime("%F %T", @") vnoremap utc :s/\v(^\|[^0-9])\zs[0-9]{10}\ze([^0-9]\|$)/\=strftime("%c",submatch(0))/g