Skip to content

Commit 5bc9f7f

Browse files
authored
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: ![image](https://user-images.githubusercontent.com/18380374/235074112-cc1e032f-6b43-4876-a1bc-dd48b393866b.png) After: ![image](https://user-images.githubusercontent.com/18380374/235074056-329811e8-3e81-4b55-b5a1-580ac22b6d72.png)
1 parent a645049 commit 5bc9f7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/repo/graph/commits.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
{{$userName}}
7272
{{end}}
7373
</span>
74-
<span class="time gt-df gt-ac">{{$commit.Date}}</span>
74+
<span class="time gt-df gt-ac">{{DateTime "full" $commit.Date}}</span>
7575
{{end}}
7676
</li>
7777
{{end}}

0 commit comments

Comments
 (0)