From e519249266cb69065b65f59477afa36f240b28cf Mon Sep 17 00:00:00 2001 From: Lucas Azevedo Date: Tue, 19 Jul 2022 09:30:55 -0300 Subject: Fix modified due date message (#20388) --- templates/repo/issue/view_content/comments.tmpl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'templates') diff --git a/templates/repo/issue/view_content/comments.tmpl b/templates/repo/issue/view_content/comments.tmpl index 319ee33fae..852c87f2f3 100644 --- a/templates/repo/issue/view_content/comments.tmpl +++ b/templates/repo/issue/view_content/comments.tmpl @@ -340,7 +340,8 @@ {{.Poster.GetDisplayName}} - {{$.locale.Tr "repo.issues.due_date_modified" (.Content | ParseDeadline) $createdStr | Safe}} + {{$parsedDeadline := .Content | ParseDeadline}} + {{$.locale.Tr "repo.issues.due_date_modified" (index $parsedDeadline 0) (index $parsedDeadline 1) $createdStr | Safe}} {{else if eq .Type 18}} -- cgit v1.2.3