Skip to content

Commit edd93fc

Browse files
authored
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>
1 parent 9a65d01 commit edd93fc

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
@@ -374,7 +374,7 @@
374374
<div class="gt-df gt-sb gt-ac">
375375
<div class="due-date {{if .Issue.IsOverdue}}text red{{end}}" {{if .Issue.IsOverdue}}data-tooltip-content="{{.locale.Tr "repo.issues.due_date_overdue"}}"{{end}}>
376376
{{svg "octicon-calendar" 16 "gt-mr-3"}}
377-
{{DateTime "long" .Issue.DeadlineUnix}}
377+
{{DateTime "long" .Issue.DeadlineUnix.FormatDate}}
378378
</div>
379379
<div>
380380
{{if and .HasIssuesOrPullsWritePermission (not .Repository.IsArchived)}}

0 commit comments

Comments
 (0)