When the DbfHeader class is initialised, there is no way to set the _updateDate value, so it ends up as 1 Jan 2049 after the following:
_updateDate defaults to DateTime.MinValue (1 Jan 0001)
1 - 1900 = -1899
(byte)-1899 = 149
- When the file is read back:
149 + 1900 = 2049
Ideas
- Consider defaulting _updateDate to the current time (using TimeProvider?)
- Expose the _updateDate with a prop so it can be set explicitly
When the DbfHeader class is initialised, there is no way to set the _updateDate value, so it ends up as 1 Jan 2049 after the following:
_updateDatedefaults toDateTime.MinValue(1 Jan 0001)1 - 1900 = -1899(byte)-1899 = 149149 + 1900 = 2049Ideas