From ff77421511f676ac647227b2cd7b7b015cc3fdaa Mon Sep 17 00:00:00 2001 From: "gerv%gerv.net" <> Date: Thu, 17 Mar 2005 08:01:28 +0000 Subject: Bug 179514 - make CVS bug lists use consistent format for date and time. Patch by gerv; r,a=myk. --- template/en/default/list/list.csv.tmpl | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'template/en/default') diff --git a/template/en/default/list/list.csv.tmpl b/template/en/default/list/list.csv.tmpl index cb6bb6708..2731b6613 100644 --- a/template/en/default/list/list.csv.tmpl +++ b/template/en/default/list/list.csv.tmpl @@ -21,6 +21,7 @@ #%] [% PROCESS global/variables.none.tmpl %] +[% USE date %] bug_id, [% FOREACH column = displaycolumns %] @@ -30,6 +31,10 @@ bug_id, [% FOREACH bug = bugs %] [% bug.bug_id %], [% FOREACH column = displaycolumns %] + [% IF column == "opendate" OR column == "changeddate" %] + [% rawcolumn = column.replace("date", "time") %] + [% bug.$column = date.format(bug.$rawcolumn, "%Y-%m-%d %H:%M:%S") %] + [% END %] [% bug.$column FILTER csv %], [% END %] -- cgit v1.2.3-24-g4f1b