aboutsummaryrefslogtreecommitdiffstats
path: root/templates/repo
diff options
context:
space:
mode:
authorYarden Shoham <git@yardenshoham.com>2023-08-01 17:21:04 +0300
committerGitHub <noreply@github.com>2023-08-01 16:21:04 +0200
commitedd93fcfbce72b6f4dd95f347473c4c5721bfd99 (patch)
tree54debb5bf656a4a4adf479cddc59a0d9604656f5 /templates/repo
parent9a65d011f6b289dd6e7acb18a4b86c51d4d388ee (diff)
downloadgitea-edd93fcfbce72b6f4dd95f347473c4c5721bfd99.tar.gz
gitea-edd93fcfbce72b6f4dd95f347473c4c5721bfd99.zip
Fix due date rendering the wrong date in issue (#26268)
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 <git@yardenshoham.com>
Diffstat (limited to 'templates/repo')
-rw-r--r--templates/repo/issue/view_content/sidebar.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/issue/view_content/sidebar.tmpl b/templates/repo/issue/view_content/sidebar.tmpl
index c89df8626a..15845665bb 100644
--- a/templates/repo/issue/view_content/sidebar.tmpl
+++ b/templates/repo/issue/view_content/sidebar.tmpl
@@ -374,7 +374,7 @@
<div class="gt-df gt-sb gt-ac">
<div class="due-date {{if .Issue.IsOverdue}}text red{{end}}" {{if .Issue.IsOverdue}}data-tooltip-content="{{.locale.Tr "repo.issues.due_date_overdue"}}"{{end}}>
{{svg "octicon-calendar" 16 "gt-mr-3"}}
- {{DateTime "long" .Issue.DeadlineUnix}}
+ {{DateTime "long" .Issue.DeadlineUnix.FormatDate}}
</div>
<div>
{{if and .HasIssuesOrPullsWritePermission (not .Repository.IsArchived)}}