From e0a514d89c5660378609605e4ddde2ac6c93f22c Mon Sep 17 00:00:00 2001 From: DarkWiiPlayer Date: Wed, 9 Jun 2021 10:55:14 +0200 Subject: [PATCH] Fix date format in vim blame info --- vim/plugin/git.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vim/plugin/git.vim b/vim/plugin/git.vim index 72034e6..620308b 100644 --- a/vim/plugin/git.vim +++ b/vim/plugin/git.vim @@ -174,8 +174,8 @@ function s:split_blame_entry(idx, entry) let l:map[l:pair[:l:split-1]] = l:pair[l:split+1:] endfor let l:map["commit"]=a:entry[:match(a:entry, " ")-1] - let l:map["time"]=strftime("%Y-%d-%m %H:%M:%S", l:map["committer-time"]) - let l:map["date"]=strftime("%Y-%d-%m", l:map["committer-time"]) + let l:map["time"]=strftime("%Y-%m-%d %H:%M:%S", l:map["committer-time"]) + let l:map["date"]=strftime("%Y-%m-%d", l:map["committer-time"]) if l:map["author"]=="Not Committed Yet" let l:map["short"]="(Uncommitted)" else