tafia / calamine

A pure Rust Excel/OpenDocument SpreadSheets file reader: rust on metal sheets
MIT License
1.61k stars 155 forks source link

Date parsing with xlsb fails if there are no custom formats present #315

Closed fzumstein closed 1 year ago

fzumstein commented 1 year ago

296 by @ketbra introduced date support for xlsb but it fails to handle the built-in formats in case there are no custom-formatted cells present as in this case, the BrtBeginFmts section is missing (which is where the built-in date formats are currently being handled).

To reproduce: run date_xlsb test, but using the attached file instead of date.xlsb.

date_builtin.zip