diff options
author | lpsolit%gmail.com <> | 2008-08-27 09:32:11 +0200 |
---|---|---|
committer | lpsolit%gmail.com <> | 2008-08-27 09:32:11 +0200 |
commit | 615cfb88c1aae1f8372b323e9c53a84d8c9146fe (patch) | |
tree | d41bf992b9de42c29141e41714b6108866a39204 /template/en/default | |
parent | 68c8ee64ec7dc985931f17f98cb83ee153dcd25c (diff) | |
download | bugzilla-615cfb88c1aae1f8372b323e9c53a84d8c9146fe.tar.gz bugzilla-615cfb88c1aae1f8372b323e9c53a84d8c9146fe.tar.xz |
Bug 182238: Allow users to choose what time zone to display times in - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=mkanat
Diffstat (limited to 'template/en/default')
-rw-r--r-- | template/en/default/global/setting-descs.none.tmpl | 2 | ||||
-rw-r--r-- | template/en/default/list/list.html.tmpl | 6 | ||||
-rw-r--r-- | template/en/default/reports/chart.html.tmpl | 4 | ||||
-rw-r--r-- | template/en/default/reports/report.html.tmpl | 4 |
4 files changed, 9 insertions, 7 deletions
diff --git a/template/en/default/global/setting-descs.none.tmpl b/template/en/default/global/setting-descs.none.tmpl index 10290ad66..bcd476d04 100644 --- a/template/en/default/global/setting-descs.none.tmpl +++ b/template/en/default/global/setting-descs.none.tmpl @@ -43,5 +43,7 @@ "quote_replies" => "Quote the associated comment when you click on its reply link", "quoted_reply" => "Quote the full comment", "simple_reply" => "Reference the comment number only", + "timezone" => "Timezone used to display dates and times", + "local" => "Same as the server", } %] diff --git a/template/en/default/list/list.html.tmpl b/template/en/default/list/list.html.tmpl index 512201c27..37fd0a638 100644 --- a/template/en/default/list/list.html.tmpl +++ b/template/en/default/list/list.html.tmpl @@ -54,11 +54,7 @@ <div class="bz_query_head" align="center"> <span class="bz_query_timestamp"> - [% IF Param('timezone') %] - <b>[% time2str("%a %b %e %Y %T %Z", currenttime, Param('timezone')) %]</b><br> - [% ELSE %] - <b>[% time2str("%a %b %e %Y %T", currenttime) %]</b><br> - [% END %] + <b>[% currenttime FILTER time('%a %b %e %Y %T %Z') FILTER html %]</b><br> </span> [% IF debug %] diff --git a/template/en/default/reports/chart.html.tmpl b/template/en/default/reports/chart.html.tmpl index 06a8d791f..e14744d31 100644 --- a/template/en/default/reports/chart.html.tmpl +++ b/template/en/default/reports/chart.html.tmpl @@ -25,9 +25,11 @@ height = 350 %] +[% time = time FILTER time('%Y-%m-%d %H:%M:%S') FILTER html %] + [% PROCESS global/header.html.tmpl title = "Chart" - header_addl_info = time2str("%Y-%m-%d %H:%M:%S", time) + header_addl_info = time %] <div align="center"> diff --git a/template/en/default/reports/report.html.tmpl b/template/en/default/reports/report.html.tmpl index b8e52219a..37af0b300 100644 --- a/template/en/default/reports/report.html.tmpl +++ b/template/en/default/reports/report.html.tmpl @@ -66,6 +66,8 @@ [% col_field_disp FILTER html %] [% END %] +[% time = time FILTER time('%Y-%m-%d %H:%M:%S') FILTER html %] + [% PROCESS global/header.html.tmpl style = " .t1 { background-color: #ffffff } /* white */ @@ -74,7 +76,7 @@ .t4 { background-color: #c3d3ed } /* darker blue */ .ttotal { background-color: #cfffdf } /* light green */ " - header_addl_info = time2str("%Y-%m-%d %H:%M:%S", time) + header_addl_info = time %] [% IF debug %] |