diff options
author | yp05327 <576951401@qq.com> | 2023-04-29 03:58:59 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-28 14:58:59 -0400 |
commit | 5bc9f7fcf9aece92c3fa2a0ea56e5585261a7f28 (patch) | |
tree | 1517ab49c99249ca3e452e307b434fc2e73d0f59 | |
parent | a6450494c3a9c05667ae8a2ebdfdea55b8206e9b (diff) | |
download | gitea-5bc9f7fcf9aece92c3fa2a0ea56e5585261a7f28.tar.gz gitea-5bc9f7fcf9aece92c3fa2a0ea56e5585261a7f28.zip |
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)
-rw-r--r-- | templates/repo/graph/commits.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
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}} |