diff options
author | Dave Whiteland <dave@mysociety.org> | 2012-11-11 17:14:53 +0000 |
---|---|---|
committer | Dave Whiteland <dave@mysociety.org> | 2012-11-11 17:14:53 +0000 |
commit | 74c1a09a10d606d9d8850f7fb70b6e578d2c3877 (patch) | |
tree | 6cd70d409d3ac7e14b1c1c5d10aa366d8546c77f /perllib/Utils.pm | |
parent | 3d2e9c254244592ddce937230cbd0e057f69e073 (diff) | |
parent | c0e4463163d4a9b9a8be073964ef960b114c9ea0 (diff) |
Merge branch 'master' of ssh://git.mysociety.org/data/git/public/fixmystreet
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 09c7386b4..ab7bc6e12 100644 --- a/perllib/Utils.pm +++ b/perllib/Utils.pm @@ -241,6 +241,7 @@ sub cleanup_text { sub prettify_epoch { my ( $epoch, $type ) = @_; + $type ||= ''; $type = 'short' if $type eq '1'; my $dt = DateTime->from_epoch( epoch => $epoch, time_zone => 'local' ); |