aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Reports.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Reports.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/Reports.pm5
1 files changed, 2 insertions, 3 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Reports.pm b/perllib/FixMyStreet/App/Controller/Reports.pm
index c64bc9054..17ebc8b0c 100644
--- a/perllib/FixMyStreet/App/Controller/Reports.pm
+++ b/perllib/FixMyStreet/App/Controller/Reports.pm
@@ -253,14 +253,13 @@ sub load_problems : Private {
} elsif ($c->stash->{council}) {
$where->{areas} = { 'like', '%' . $c->stash->{council}->{id} . '%' };
}
- my $current_timestamp = Problems::current_timestamp();
my $problems = $c->cobrand->problems->search(
$where,
{
columns => [
'id', 'title', 'detail', 'council', 'state', 'areas',
- { duration => { extract => "epoch from $current_timestamp-lastupdate" } },
- { age => { extract => "epoch from $current_timestamp-confirmed" } },
+ { duration => { extract => "epoch from current_timestamp-lastupdate" } },
+ { age => { extract => "epoch from current_timestamp-confirmed" } },
],
order_by => { -desc => 'id' },
}