diff options
author | Hakim Cassimally <hakim@mysociety.org> | 2014-05-27 16:08:50 +0000 |
---|---|---|
committer | Hakim Cassimally <hakim@mysociety.org> | 2014-08-13 15:11:29 +0000 |
commit | 382a782c16a998776176de37037dd029fab4e3fe (patch) | |
tree | c425b24e3ce2c396214fd463e0fc0bde21f792be /perllib/Utils.pm | |
parent | 68a486f190aa5054b3bcf1be2a63ad0c7c6aef26 (diff) |
Report moderation
- redaction marked with [...]
- of report and comments
- stores original data
- uses a single form, on the report/_main view
- requires additional permissions (user_body_permissions)
- Hide report functionality
- Moderation notification/contact form
- Moderation writes to admin_log
Diffstat (limited to 'perllib/Utils.pm')
-rw-r--r-- | perllib/Utils.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/perllib/Utils.pm b/perllib/Utils.pm index 7a22c888d..8f0ac1820 100644 --- a/perllib/Utils.pm +++ b/perllib/Utils.pm @@ -231,6 +231,7 @@ sub prettify_dt { my $now = DateTime->now( time_zone => FixMyStreet->config('TIME_ZONE') || 'local' ); my $tt = ''; + return "[unknown time]" unless ref $dt; $tt = $dt->strftime('%H:%M') unless $type eq 'date'; if ($dt->strftime('%Y%m%d') eq $now->strftime('%Y%m%d')) { |