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>tags/v1.21.4
<span class="due-date flex-text-inline" data-tooltip-content="{{ctx.Locale.Tr "repo.issues.due_date"}}"> | <span class="due-date flex-text-inline" data-tooltip-content="{{ctx.Locale.Tr "repo.issues.due_date"}}"> | ||||
<span{{if .IsOverdue}} class="text red"{{end}}> | <span{{if .IsOverdue}} class="text red"{{end}}> | ||||
{{svg "octicon-calendar" 14}} | {{svg "octicon-calendar" 14}} | ||||
{{DateTime "short" .DeadlineUnix}} | |||||
{{DateTime "short" (.DeadlineUnix.Format "2006-01-02")}} | |||||
</span> | </span> | ||||
</span> | </span> | ||||
{{end}} | {{end}} |