summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorGiteabot <teabot@gitea.io>2023-12-23 01:25:43 +0800
committerGitHub <noreply@github.com>2023-12-22 17:25:43 +0000
commit564068aa99be42d18e10247deb458d21b13f1a19 (patch)
tree4b63e53d696545af657d3b3fab087faf164d967c /templates
parent6a559ad6348b95aa1cbb275003699d709af00bfc (diff)
downloadgitea-564068aa99be42d18e10247deb458d21b13f1a19.tar.gz
gitea-564068aa99be42d18e10247deb458d21b13f1a19.zip
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>
Diffstat (limited to 'templates')
-rw-r--r--templates/shared/issuelist.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/shared/issuelist.tmpl b/templates/shared/issuelist.tmpl
index 5b3f2d9970..00bd7a8c1f 100644
--- a/templates/shared/issuelist.tmpl
+++ b/templates/shared/issuelist.tmpl
@@ -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}}