From 9ade0b21dd6d603bab1722819e02103ea827e212 Mon Sep 17 00:00:00 2001 From: Oliver Gorwits Date: Fri, 3 Mar 2023 14:56:24 +0000 Subject: [PATCH] #949 replace other occurances of now() with LOCALTIMESTAMP --- bin/netdisco-rancid-export | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;