Skip to content

Use timestamp column type in example configs - #2502

Open
leijurv wants to merge 1 commit into
osm2pgsql-dev:masterfrom
leijurv:example-timestamps
Open

leijurv wants to merge 1 commit into
osm2pgsql-dev:masterfrom
leijurv:example-timestamps

Conversation

@leijurv

@leijurv leijurv commented Sep 24, 2026

Copy link
Copy Markdown

The attributes and track-changes Lua examples are written as though there is no timestamp type in osm2pgsql, but this is now out of date. It is simpler and unambiguous to use the timestamp type and give osm2pgsql the timestamp as a number. It removes the possibility of mistakes one might make when adapting these examples, say, formatting in local time, or leaving out the timezone. The resulting tables are the same, with the exception of that nil times stay as null rather than silently being converted to the current time (which is ~certainly wrong).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants