[Bug]: Spreadsheet reader shows [h]:mm durations as 1900 dates (36 hours -> "1900-01-01 12:00:00")
Summary
Cells with an elapsed-time number format ([h]:mm:ss, Excel built-in format 46, also [h]:mm and [mm]:ss) are read as dates. A timesheet total of 36 hours comes through as "1900-01-01 12:00:00" instead of "36:00:00", so the agent gets every duration over 24h wrong.
To Reproduce
- In Excel, put =1.5 in a cell and format it as [h]:mm:ss (it shows 36:00:00)
- Save as .xlsx and attach it / let the agent read it
- The cell is read as "1900-01-01 12:00:00"
Expected behavior
Durations read the way Excel shows them: 36:00:00, 54:00:00, etc.
Actual behavior
1.5 with [h]:mm:ss -> "1900-01-01 12:00:00" 2.25 with [h]:mm -> "1900-01-02 06:00:00"
Additional context (optional)
isDateNumberFormat in packages/workbook/src/xlsx-workbook.ts strips everything in brackets before looking for date tokens. That's right for [$-409] or [Red], but [h], [mm] and [ss] are the elapsed-time tokens themselves. [h]:mm:ss becomes :mm:ss, it's treated as a date, and excelSerialToIso turns 1.5 into a 1900 date.
Fixed by your own PR #6819, now on dev: [h]:mm elapsed-time cells read as durations instead of 1900 dates. Thanks @poojagosika for both the report and the fix.