OSGeo / shapelib

Official repository of shapelib
Other
141 stars 66 forks source link

Set last modified date to current day (in local tz) #109

Closed thbeu closed 8 months ago

thbeu commented 8 months ago

Avoid dummy date 1995-06-27 when creating DBF.

PR uses the re-entrant variant of localtime if available.

rouault commented 8 months ago

I'm moderately enthusiastic about that. For reproducibility reasons, it is good to have a fixed date. That way a fixed set of input data produces a binary identical shapefile. Perhaps make the behaviour of setting an up to date date opt-in through a function?

thbeu commented 8 months ago

OK, no need to have it merged. There already is an opt-in by modifying the date afterwards via DBFSetLastModifiedDate.