diff --git a/bin/netdisco-rancid-export b/bin/netdisco-rancid-export index ef907f83..8febea4e 100755 --- a/bin/netdisco-rancid-export +++ b/bin/netdisco-rancid-export @@ -65,7 +65,7 @@ foreach my $g (@{$settings->{ 'by_hostname' }}) { my @devices = schema('netdisco')->resultset('Device')->search({}, { '+columns' => { - old => \"age(now(), last_discover) > interval '$down_age'" + old => \"age(LOCALTIMESTAMP, last_discover) > interval '$down_age'" } })->all;