Skip to content

Commit 2cf1515

Browse files
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 <git@yardenshoham.com> Co-authored-by: Yarden Shoham <git@yardenshoham.com>
1 parent a075285 commit 2cf1515

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/repo/issue/view_content/sidebar.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@
362362
<div class="gt-df gt-sb gt-ac">
363363
<div class="due-date {{if .Issue.IsOverdue}}text red{{end}}" {{if .Issue.IsOverdue}}data-tooltip-content="{{.locale.Tr "repo.issues.due_date_overdue"}}"{{end}}>
364364
{{svg "octicon-calendar" 16 "gt-mr-3"}}
365-
{{DateTime "long" .Issue.DeadlineUnix}}
365+
{{DateTime "long" .Issue.DeadlineUnix.FormatDate}}
366366
</div>
367367
<div>
368368
{{if and .HasIssuesOrPullsWritePermission (not .Repository.IsArchived)}}

0 commit comments

Comments
 (0)