#949 replace other occurances of now() with LOCALTIMESTAMP

This commit is contained in:
Oliver Gorwits
2023-03-03 14:21:18 +00:00
parent d9a384d1d0
commit cbc32eb032
6 changed files with 12 additions and 12 deletions

View File

@@ -14,7 +14,7 @@ __PACKAGE__->table("node_with_age");
__PACKAGE__->result_source_instance->is_virtual(1);
__PACKAGE__->result_source_instance->view_definition(q{
SELECT *,
replace( date_trunc( 'minute', age( now(), time_last + interval '30 second' ) ) ::text, 'mon', 'month')
replace( date_trunc( 'minute', age( LOCALTIMESTAMP, time_last + interval '30 second' ) ) ::text, 'mon', 'month')
AS time_last_age
FROM node
});