From 5bc9f7fcf9aece92c3fa2a0ea56e5585261a7f28 Mon Sep 17 00:00:00 2001 From: yp05327 <576951401@qq.com> Date: Sat, 29 Apr 2023 03:58:59 +0900 Subject: [PATCH] Improve commit date in commit graph (#24399) The commit date time is based on server's time zone not user's local time zone. Before:  After:  --- templates/repo/graph/commits.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/repo/graph/commits.tmpl b/templates/repo/graph/commits.tmpl index 44f63a7d76..f5fc27315a 100644 --- a/templates/repo/graph/commits.tmpl +++ b/templates/repo/graph/commits.tmpl @@ -71,7 +71,7 @@ {{$userName}} {{end}} </span> - <span class="time gt-df gt-ac">{{$commit.Date}}</span> + <span class="time gt-df gt-ac">{{DateTime "full" $commit.Date}}</span> {{end}} </li> {{end}}