From bf7c6c0389724441cd481b7a700dcced5225e5de Mon Sep 17 00:00:00 2001 From: Jochen Topf Date: Mon, 3 Oct 2022 11:54:24 +0200 Subject: [PATCH] Add note about use of timestamp/timestamptz to example Closes #1785 --- flex-config/attributes.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/flex-config/attributes.lua b/flex-config/attributes.lua index 0acecf085..f4c6b20b3 100644 --- a/flex-config/attributes.lua +++ b/flex-config/attributes.lua @@ -19,6 +19,10 @@ tables.nodes = osm2pgsql.define_node_table('nodes', { -- There is no built-in type for timestamps in osm2pgsql. So we use the -- PostgreSQL type "timestamp" and then have to convert our timestamps -- to a valid text representation for that type. + -- + -- Timestamps in OSM are always in UTC, depending on your use case you + -- might want to store them using "timestamptz" instead. + -- See https://github.com/openstreetmap/osm2pgsql/issues/1785 { column = 'created', sql_type = 'timestamp' }, { column = 'uid', type = 'int' }, { column = 'user', type = 'text' },