diff options
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')) { |