GeospatialPython / pyshp

This library reads and writes ESRI Shapefiles in pure Python.
MIT License
1.1k stars 260 forks source link

Fix date field less than 1900 #144

Closed megies closed 6 years ago

megies commented 6 years ago

This fixes a bug when writing to date fields with values of before 1900AD. datetime.datetime.strftime() raises an exception when used with dates earlier than 1900AD but it's trivial to just use plain string formatting instead.

karimbahgat commented 6 years ago

I recently came across this datetime limitation in another setting, should be useful for a lot of historical data. Thanks 👍