aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2013-01-22 10:39:56 +0000
committerMatthew Somerville <matthew@mysociety.org>2013-01-22 10:39:56 +0000
commit78446bf56090e2de57bd5be694790b50b7e4fe36 (patch)
tree590ecdda062748fc8a1b45f78d8713ce9684c211
parent4fc0fbc8287e35d79ea65362fc3bbff3e286cc57 (diff)
Overdue comparison correct way round.
-rw-r--r--perllib/FixMyStreet/Cobrand/Zurich.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Zurich.pm b/perllib/FixMyStreet/Cobrand/Zurich.pm
index 6c0c491ca..d8a92f8cc 100644
--- a/perllib/FixMyStreet/Cobrand/Zurich.pm
+++ b/perllib/FixMyStreet/Cobrand/Zurich.pm
@@ -74,11 +74,11 @@ sub overdue {
if ( $problem->state eq 'unconfirmed' || $problem->state eq 'confirmed' ) {
# One working day
$w = add_days( $w, 1 );
- return $w > DateTime->now();
+ return $w < DateTime->now();
} elsif ( $problem->state eq 'in progress' ) {
# Five working days
$w = add_days( $w, 5 );
- return $w > DateTime->now();
+ return $w < DateTime->now();
} else {
return 0;
}