Skip to content

Map built-in number format 22 to "m/d/yy h:mm" - #88

Merged
borgar merged 3 commits into
borgar:masterfrom
steinnes:fix-numfmt-22
Aug 21, 2026
Merged

Map built-in number format 22 to "m/d/yy h:mm"#88
borgar merged 3 commits into
borgar:masterfrom
steinnes:fix-numfmt-22

Conversation

@steinnes

Copy link
Copy Markdown
Contributor

Format id 22 was aliased to id 21 ("h:mm:ss") since 89b4eae, so cells using the built-in date-time format lost their date component when read. ECMA-376 §18.8.30 defines id 22 as "m/d/yy h:mm".

Format id 22 was aliased to id 21 ("h:mm:ss") since 89b4eae, so cells
using the built-in date-time format lost their date component when
read. ECMA-376 §18.8.30 defines id 22 as "m/d/yy h:mm".
The workbook was written by Excel for Mac 16 via number-format
assignment, so Excel itself chose the numFmtId values: cells B1:B12
carry ids 14-22 and 45-47 with no <numFmts> section. The expected
JSON asserts each id resolves to its ECMA-376 §18.8.30 format code.
@steinnes
steinnes marked this pull request as ready for review August 21, 2026 11:08
@borgar
borgar merged commit 2f17758 into borgar:master Aug 21, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants