diff options
-rw-r--r-- | perllib/Utils.pm | 2 | ||||
-rw-r--r-- | templates/web/zurich/report/_item.html | 4 | ||||
-rw-r--r-- | templates/web/zurich/report/_main.html | 2 | ||||
-rw-r--r-- | templates/web/zurich/report/updates.html | 2 |
4 files changed, 6 insertions, 4 deletions
diff --git a/perllib/Utils.pm b/perllib/Utils.pm index 1dd732283..04d973067 100644 --- a/perllib/Utils.pm +++ b/perllib/Utils.pm @@ -242,6 +242,8 @@ sub prettify_dt { $tt .= ', ' unless $type eq 'date'; if ($dt->strftime('%Y %U') eq $now->strftime('%Y %U')) { $tt .= decode_utf8($dt->strftime('%A')); + } elsif ($type eq 'zurich') { + $tt .= decode_utf8($dt->strftime('%e. %B %Y')); } elsif ($type eq 'short') { $tt .= decode_utf8($dt->strftime('%e %b %Y')); } elsif ($dt->strftime('%Y') eq $now->strftime('%Y')) { diff --git a/templates/web/zurich/report/_item.html b/templates/web/zurich/report/_item.html index 9c2d20551..cf70bdcbb 100644 --- a/templates/web/zurich/report/_item.html +++ b/templates/web/zurich/report/_item.html @@ -8,9 +8,9 @@ [% ELSE %] <h4><em>[% loc('Awaiting moderation') %]</em></h4> [% END %] - <small>[% prettify_dt( problem.created_local, 1 ) %] + <small>[% prettify_dt( problem.created_local, 'zurich' ) %] [%- IF dist %], [% dist %]km[% END %] - [%- IF include_lastupdate AND problem.created != problem.lastupdate AND problem.whensent != problem.lastupdate %], last updated [% prettify_dt( problem.lastupdate_local, 1 ) %] + [%- IF include_lastupdate AND problem.created != problem.lastupdate AND problem.whensent != problem.lastupdate %], last updated [% prettify_dt( problem.lastupdate_local, 'zurich' ) %] [%- END %] [% IF NOT no_fixed AND problem.is_fixed %] [% loc('(fixed)') %] diff --git a/templates/web/zurich/report/_main.html b/templates/web/zurich/report/_main.html index fb24c6d96..e6c310873 100644 --- a/templates/web/zurich/report/_main.html +++ b/templates/web/zurich/report/_main.html @@ -1,7 +1,7 @@ <div class="problem-header cf"> <h1>[% tprintf( loc('Reported in the %s category'), problem.category ) %]</h1> <p class="sub"> - [% prettify_dt( problem.created_local ) %] + [% prettify_dt( problem.created_local, 'zurich' ) %] [%- IF !problem.used_map %]<br>[% loc('there is no pin shown as the user did not use the map') %][% END %] </p> diff --git a/templates/web/zurich/report/updates.html b/templates/web/zurich/report/updates.html index 462817043..69c8af99f 100644 --- a/templates/web/zurich/report/updates.html +++ b/templates/web/zurich/report/updates.html @@ -4,7 +4,7 @@ <li> <div class="update-wrap"> <div class="update-text"> - <p class="meta-2">[% prettify_dt( problem.lastupdate_local ) %]</p> + <p class="meta-2">[% prettify_dt( problem.lastupdate_local, 'zurich' ) %]</p> [% IF problem.state == 'fixed - council' %] [% add_links( problem.extra.public_response ) | html_para %] [% ELSIF problem.state == 'closed' AND problem.external_body %] |