#949 replace other occurances of now() with LOCALTIMESTAMP

This commit is contained in:
Oliver Gorwits
2023-03-03 14:56:24 +00:00
parent 214b98d28f
commit 9ade0b21dd

View File

@@ -65,7 +65,7 @@ foreach my $g (@{$settings->{ 'by_hostname' }}) {
my @devices = schema('netdisco')->resultset('Device')->search({}, my @devices = schema('netdisco')->resultset('Device')->search({},
{ {
'+columns' => { '+columns' => {
old => \"age(now(), last_discover) > interval '$down_age'" old => \"age(LOCALTIMESTAMP, last_discover) > interval '$down_age'"
} }
})->all; })->all;