diff --git a/initdb/02_5_signalk_api_deps.sql b/initdb/02_5_signalk_api_deps.sql index 5fb84f8..d087a1f 100644 --- a/initdb/02_5_signalk_api_deps.sql +++ b/initdb/02_5_signalk_api_deps.sql @@ -46,7 +46,7 @@ CREATE OR REPLACE VIEW api.vessels_view WITH (security_invoker=true,security_bar SELECT v.name as name, v.mmsi as mmsi, - v.created_at::timestamp(0) as created_at, + v.created_at as created_at, m.last_contact as last_contact, ((NOW() AT TIME ZONE 'UTC' - m.last_contact::TIMESTAMPTZ) > INTERVAL '70 MINUTES') as offline, (NOW() AT TIME ZONE 'UTC' - m.last_contact::TIMESTAMPTZ) as duration