From: Israel Madueme Date: Wed, 15 May 2019 16:03:31 +0000 (-0400) Subject: Bug 1540715 - Fix offset of historical dates in secbugs report X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e66a39fe1f1d31873cbf15c3aebdd63a348d102d;p=thirdparty%2Fbugzilla.git Bug 1540715 - Fix offset of historical dates in secbugs report `FILTER time` from Bugzilla's template helpers was inconsistent on how it rendered the dates of the columns (due to different system timezones that change based on where the code is being run). This patch sets the expected timezone for the report and manually formats the time (since FILTER time seems to not respect the date's timezone). --- diff --git a/template/en/default/reports/email/security-risk.html.tmpl b/template/en/default/reports/email/security-risk.html.tmpl index 45d5c11b0..90e335f46 100644 --- a/template/en/default/reports/email/security-risk.html.tmpl +++ b/template/en/default/reports/email/security-risk.html.tmpl @@ -21,7 +21,7 @@ Team - Open
[% results.reverse.0.date FILTER time('%m/%d') %] + Open
[% results.reverse.0.date.strftime('%m/%d') FILTER html %] Closed
Last Week Added
Last Week @@ -29,7 +29,7 @@ [% NEXT IF loop.count < 2 %] [% LAST IF loop.count > 4 %] - Open
[% result.date FILTER time('%m/%d') %] + Open
[% result.date.strftime('%m/%d') FILTER html %] [% END %] @@ -89,7 +89,7 @@ Category - Open
[% results.reverse.0.date FILTER time('%m/%d') %] + Open
[% results.reverse.0.date.strftime('%m/%d') FILTER html %] Closed
Last Week Added
Last Week @@ -100,7 +100,7 @@ [% NEXT IF loop.count < 2 %] [% LAST IF loop.count > 4 %] - Open
[% result.date FILTER time('%m/%d') %] + Open
[% result.date.strftime('%m/%d') FILTER html %] [% END %]