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:
committed by
Nicolás Hatcher Andrés
parent
7c32088480
commit
d04691b790
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user