Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-11-29 05:06:11 +01:00

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)
This commit is contained in:
yp05327 2023-04-29 03:58:59 +09:00 committed by GitHub
parent a6450494c3
commit 5bc9f7fcf9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -71,7 +71,7 @@
{{$userName}} {{$userName}}
{{end}} {{end}}
</span> </span>
<span class="time gt-df gt-ac">{{$commit.Date}}</span> <span class="time gt-df gt-ac">{{DateTime "full" $commit.Date}}</span>
{{end}} {{end}}
</li> </li>
{{end}} {{end}}