refactor(dates): adjust date handling logic for improved accuracy

Updated the logic for handling months and days to improve date calculations. Also modified the constants for Excel date ranges to align with supported dates.
This commit is contained in:
Shalom Yiblet
2024-12-18 10:18:01 -08:00
committed by Nicolás Hatcher Andrés
parent 7c32088480
commit d04691b790
4 changed files with 22 additions and 12 deletions

View File

@@ -209,7 +209,7 @@ fn test_date_early_dates() {
);
// This does not agree with Excel, instead of mistakenly allowing
// for Feb 29, it will auto-wrap to the next day after Feb 28.
// for Feb 29, it will auto-wrap to the next day after Feb 28.
assert_eq!(model._get_text("B2"), *"01/03/1900");
// This agrees with Excel from he onward