]> source.dussan.org Git - gitea.git/commit
Fix commit's time (#18375)
authorGusted <williamzijl7@hotmail.com>
Mon, 24 Jan 2022 22:11:40 +0000 (22:11 +0000)
committerGitHub <noreply@github.com>
Mon, 24 Jan 2022 22:11:40 +0000 (00:11 +0200)
commit43c6b27716381dad9debd2ebbd9e1ae332af23b2
treeea2c11a43f42ef77ad68684d863cdf7bee9b9fa2
parent9837773f0e5267297e99b7267c9f19d23d63232d
Fix commit's time (#18375)

* Fix commit's time

- Use the Committer's `when` as the CommitDate will be modified when the
commit is being moved around in the git tree(e.g. being rebased on top
of newer commits). The Author's `when` is created once and never touched
again.

* Update templates/repo/view_list.tmpl

* Commmt unstaged

* Add fallback

Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
templates/repo/commits_list.tmpl
templates/repo/view_list.tmpl