diff --git a/templates/repo/issue/view_content/sidebar.tmpl b/templates/repo/issue/view_content/sidebar.tmpl index f403fa7cc..f0e4f96cf 100644 --- a/templates/repo/issue/view_content/sidebar.tmpl +++ b/templates/repo/issue/view_content/sidebar.tmpl @@ -211,7 +211,7 @@
{{.i18n.Tr "repo.issues.due_date"}} - {{if gt .Issue.DeadlineUnix 0}} + {{if ne .Issue.DeadlineUnix 0}}{{.Issue.DeadlineUnix.FormatShort}} @@ -229,12 +229,12 @@ {{end}} {{if and .IsSigned .IsRepositoryWriter}} -