fix: missing break condition in make_json_row #3270

Manually merged
sheetjs merged 0 commits from deepak-negi-web/sheetjs:patch-1 into master 2025-01-10 15:24:33 +00:00
Contributor

Description

Fixes an issue where text cells with date formatting were incorrectly being converted to dates. Added a missing break statement in the make_json_row function for string ('s') and boolean ('b') type cases.

Issue

Text values in cells with date formatting were being converted to "1/0/1900" or "Invalid Date" when using cellStyles: true.

Fix

Added break statement after case 's': case 'b': to prevent fallthrough into date conversion logic.

Fixes #3268

## Description Fixes an issue where text cells with date formatting were incorrectly being converted to dates. Added a missing `break` statement in the `make_json_row` function for string ('s') and boolean ('b') type cases. ## Issue Text values in cells with date formatting were being converted to "1/0/1900" or "Invalid Date" when using `cellStyles: true`. ## Fix Added `break` statement after `case 's': case 'b':` to prevent fallthrough into date conversion logic. Fixes #3268
deepak-negi-web added 1 commit 2025-01-10 11:03:45 +00:00
sheetjs manually merged commit 9c3853ba25 into master 2025-01-10 15:24:33 +00:00
sheetjs deleted branch patch-1 2025-01-10 15:24:40 +00:00
Sign in to join this conversation.
No description provided.