From bd416d0ba9aa5f8e6fff0183dd6fb85b84b4767c Mon Sep 17 00:00:00 2001 From: Giteabot Date: Wed, 2 Aug 2023 00:40:35 +0800 Subject: [PATCH] Fix due date rendering the wrong date in issue (#26268) (#26274) Backport #26268 by @yardenshoham Closes #26263 We have to pass the date without the time. # Before ![image](https://github.com/go-gitea/gitea/assets/20454870/6b6cb43d-2b1c-4679-951d-20f48c94bfdd) # After ![image](https://github.com/go-gitea/gitea/assets/20454870/50441baf-2c52-452b-bb0d-6034a407abde) Signed-off-by: Yarden Shoham Co-authored-by: Yarden Shoham (cherry picked from commit 2cf1515f5c5e048b5f1280e60c54ad3247988ad0) --- templates/repo/issue/view_content/sidebar.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/repo/issue/view_content/sidebar.tmpl b/templates/repo/issue/view_content/sidebar.tmpl index 3fcefcb417..7c23535215 100644 --- a/templates/repo/issue/view_content/sidebar.tmpl +++ b/templates/repo/issue/view_content/sidebar.tmpl @@ -362,7 +362,7 @@
{{svg "octicon-calendar" 16 "gt-mr-3"}} - {{DateTime "long" .Issue.DeadlineUnix}} + {{DateTime "long" .Issue.DeadlineUnix.FormatDate}}
{{if and .HasIssuesOrPullsWritePermission (not .Repository.IsArchived)}}