Skip to content

This closes #2511, elapsed time number format uses the 1904 epoch in the 1904 date system - #2517

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

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

Conversation

@ruziba3vich

Copy link
Copy Markdown
Contributor

PR Details

Description

This change updates elapsedDateTimesHandler to calculate elapsed time from the 1904 epoch when the workbook uses the 1904 date system, instead of always using the 1900 epoch.

Related Issue

Closes #2511

Motivation and Context

See #2511.

How Has This Been Tested

This fixes incorrect elapsed time values, such as 35124:00:00 instead of 36:00:00 for 1.5 with the [h]:mm:ss format, and adds a regression test 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 (912f83c).
⚠️ Report is 3 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2517   +/-   ##
=======================================
  Coverage   99.72%   99.72%           
=======================================
  Files          32       32           
  Lines       33212    33235   +23     
=======================================
+ Hits        33122    33145   +23     
  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
@ruziba3vich
ruziba3vich force-pushed the numfmt-date1904-elapsed branch from e8cc840 to 912f83c Compare November 23, 2026 15:33
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.

Elapsed time number format returns wrong result in the 1904 date system

2 participants