Skip to content

Commit ad541d2

Browse files
authored
Merge pull request #1792 from joto/note-timestamp-type
Add note about use of timestamp/timestamptz to example
2 parents e39c56b + bf7c6c0 commit ad541d2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

flex-config/attributes.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ tables.nodes = osm2pgsql.define_node_table('nodes', {
1919
-- There is no built-in type for timestamps in osm2pgsql. So we use the
2020
-- PostgreSQL type "timestamp" and then have to convert our timestamps
2121
-- to a valid text representation for that type.
22+
--
23+
-- Timestamps in OSM are always in UTC, depending on your use case you
24+
-- might want to store them using "timestamptz" instead.
25+
-- See https://github.com/openstreetmap/osm2pgsql/issues/1785
2226
{ column = 'created', sql_type = 'timestamp' },
2327
{ column = 'uid', type = 'int' },
2428
{ column = 'user', type = 'text' },

0 commit comments

Comments
 (0)