Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-11-28 20:56:11 +01:00

Fix wrong due date rendering in issue list page (#28588) (#28591)

Backport #28588 by @yardenshoham

It included the hours, minutes, and seconds. By removing these, the date
renders correctly.

Signed-off-by: Yarden Shoham <git@yardenshoham.com>
Co-authored-by: Yarden Shoham <git@yardenshoham.com>
(cherry picked from commit 564068aa99)
This commit is contained in:
Giteabot 2023-12-23 01:25:43 +08:00 committed by Earl Warren
parent 3fe44b8762
commit 29a0e7738c
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00

View file

@ -114,7 +114,7 @@
<span class="due-date flex-text-inline" data-tooltip-content="{{ctx.Locale.Tr "repo.issues.due_date"}}">
<span{{if .IsOverdue}} class="text red"{{end}}>
{{svg "octicon-calendar" 14}}
{{DateTime "short" .DeadlineUnix}}
{{DateTime "short" (.DeadlineUnix.Format "2006-01-02")}}
</span>
</span>
{{end}}