Skip to content

This closes #2510, skip the 1900 leap day correction in the 1904 date system - #2516

Open
ruziba3vich wants to merge 1 commit into
qax-os:masterfrom
ruziba3vich:numfmt-date1904-leap
Open

ruziba3vich wants to merge 1 commit into
qax-os:masterfrom
ruziba3vich:numfmt-date1904-leap

Conversation

@ruziba3vich

Copy link
Copy Markdown
Contributor

PR Details

Description

This change ensures that the correction for Excel's fictitious February 29, 1900 is only applied when the workbook uses the 1900 date system.

Related Issue

Closes #2510

Motivation and Context

See #2510.

How Has This Been Tested

The correction is now skipped for 1904 workbooks across the relevant date formatting handlers, with new regression cases added to TestNumFmt.

Types of changes

  • Docs change / refactoring / dependency upgrade
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@codecov

codecov Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.72%. Comparing base (1615ceb) to head (7db761b).
⚠️ Report is 3 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2516   +/-   ##
=======================================
  Coverage   99.72%   99.72%           
=======================================
  Files          32       32           
  Lines       33212    33231   +19     
=======================================
+ Hits        33122    33141   +19     
  Misses         88       88           
  Partials        2        2           
Flag Coverage Δ
unittests 99.72% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@xuri xuri added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Nov 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Number format returns wrong date for small values in the 1904 date system

2 participants