#949 replace other occurances of now() with LOCALTIMESTAMP
This commit is contained in:
@@ -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;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user