aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rw-r--r--bin/site-specific-install.sh2
-rwxr-xr-xbin/zurich-overdue-alert4
2 files changed, 4 insertions, 2 deletions
diff --git a/bin/site-specific-install.sh b/bin/site-specific-install.sh
index 3cc84007a..2bf8e3e90 100644
--- a/bin/site-specific-install.sh
+++ b/bin/site-specific-install.sh
@@ -1,7 +1,7 @@
#!/bin/sh
# Set this to the version we want to check out
-VERSION=${VERSION_OVERRIDE:-v1.3}
+VERSION=${VERSION_OVERRIDE:-v1.4.1}
PARENT_SCRIPT_URL=https://github.com/mysociety/commonlib/blob/master/bin/install-site.sh
diff --git a/bin/zurich-overdue-alert b/bin/zurich-overdue-alert
index 4e81b3263..e7c23b493 100755
--- a/bin/zurich-overdue-alert
+++ b/bin/zurich-overdue-alert
@@ -29,10 +29,12 @@ loop_through( 'alert-overdue.txt', 0, 6, ['confirmed', 'planned'] );
sub loop_through {
my ( $template, $include_parent, $days, $states ) = @_;
+ my $dtf = FixMyStreet::App->model("DB")->storage->datetime_parser;
+ my $date_threshold = $dtf->format_datetime(FixMyStreet::Cobrand::Zurich::sub_days( $now, $days ));
my $reports = FixMyStreet::App->model("DB::Problem")->search( {
state => $states,
- created => { '<', FixMyStreet::Cobrand::Zurich::sub_days( $now, $days ) },
+ created => { '<', $date_threshold },
bodies_str => { '!=', undef },
} );