Skip to content

Commit 0337f95

Browse files
committed
replication: remove code duplication
1 parent 0119207 commit 0337f95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/osm2pgsql-replication

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def compute_database_date(conn, schema, prefix):
127127
LOG.debug("Found timestamp %s", date)
128128

129129
try:
130-
date = dt.datetime.strptime(date, '%Y-%m-%dT%H:%M:%SZ').replace(tzinfo=dt.timezone.utc)
130+
date = dt.datetime.strptime(date, '%Y-%m-%dT%H:%M:%SZ')
131131
except ValueError:
132132
LOG.fatal("Cannot parse timestamp '%s'", date)
133133
return None

0 commit comments

Comments
 (0)