diff options
-rwxr-xr-x | bin/send-comments | 2 | ||||
-rwxr-xr-x | bin/send-reports | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/bin/send-comments b/bin/send-comments index df646a682..3a5d1aa47 100755 --- a/bin/send-comments +++ b/bin/send-comments @@ -84,7 +84,7 @@ sub bromley_retry_timeout { my $tz = DateTime::TimeZone->new( name => 'local' ); my $now = DateTime->now( time_zone => $tz ); my $diff = $now - $row->send_fail_timestamp; - if ( $diff->minutes < 30 ) { + if ( $diff->in_units( 'minutes' ) < 30 ) { return 1; } diff --git a/bin/send-reports b/bin/send-reports index c45e4b98b..76933f9e1 100755 --- a/bin/send-reports +++ b/bin/send-reports @@ -596,7 +596,7 @@ sub bromley_retry_timeout { my $tz = DateTime::TimeZone->new( name => 'local' ); my $now = DateTime->now( time_zone => $tz ); my $diff = $now - $row->send_fail_timestamp; - if ( $diff->minutes < 30 ) { + if ( $diff->in_units( 'minutes' ) < 30 ) { return 1; } |