diff options
author | Struan Donald <struan@exo.org.uk> | 2011-06-09 08:53:45 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2011-06-09 08:53:45 +0100 |
commit | 79edaacb35d12c0f7867aab899e016805e99268b (patch) | |
tree | 2e38a01d88e57445e06c8697cef742fab7b173d4 /perllib/FixMyStreet/App/Controller/Reports.pm | |
parent | a7fb8b236afb7f7f25008acdafdc5b0585e78b74 (diff) | |
parent | ba0bd42476b93908529f63bb8b71135ebf7a86ca (diff) |
Merge branch 'migrate_to_catalyst' of ssh://git.mysociety.org/data/git/public/fixmystreet into migrate_to_catalyst
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Reports.pm')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Reports.pm | 5 |
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' }, } |