We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c2b54e2 + d2ed429 commit b3a9b73Copy full SHA for b3a9b73
1 file changed
scripts/osm2pgsql-replication
@@ -77,7 +77,7 @@ def compute_database_date(conn, prefix):
77
LOG.debug("Found timestamp %s", date)
78
79
try:
80
- date = dt.datetime.fromisoformat(date.replace('Z', '+00:00'))
+ date = dt.datetime.strptime(date, '%Y-%m-%dT%H:%M:%SZ').replace(tzinfo=dt.timezone.utc)
81
except ValueError:
82
LOG.fatal("Cannot parse timestamp '%s'", date)
83
return None
0 commit comments