Skip to content

Fix parsing of ambiguous date formats like Hm#21606

Merged
calixteman merged 1 commit into
mozilla:masterfrom
calixteman:fix/ambiguous-date-format
Jul 20, 2026
Merged

Fix parsing of ambiguous date formats like Hm#21606
calixteman merged 1 commit into
mozilla:masterfrom
calixteman:fix/ambiguous-date-format

Conversation

@calixteman

Copy link
Copy Markdown
Contributor

We support having hours/minutes numbers with one or two digits for strings like "1:30:31" but if the format is for example Hm, then "12" is really ambiguous. So the idea is to match the longest string as possible.

We support having hours/minutes numbers with one or two digits for strings like "1:30:31" but
if the format is for example Hm, then "12" is really ambiguous.
So the idea is to match the longest string as possible.
@calixteman
calixteman requested a review from Snuffleupagus July 20, 2026 13:24
@codecov-commenter

codecov-commenter commented Jul 20, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.84%. Comparing base (547236b) to head (d5661f8).
⚠️ Report is 4 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #21606   +/-   ##
=======================================
  Coverage   89.84%   89.84%           
=======================================
  Files         263      263           
  Lines       66757    66758    +1     
=======================================
+ Hits        59976    59981    +5     
+ Misses       6781     6777    -4     
Flag Coverage Δ
browsertest 66.54% <ø> (-0.01%) ⬇️
fonttest 9.05% <ø> (ø)
integrationtest 69.25% <ø> (-0.01%) ⬇️
unittest 57.49% <ø> (+0.01%) ⬆️
unittestcli 56.45% <ø> (-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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Snuffleupagus Snuffleupagus left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r=me, thanks.

@calixteman
calixteman merged commit 997dabf into mozilla:master Jul 20, 2026
21 checks passed
@calixteman
calixteman deleted the fix/ambiguous-date-format branch July 20, 2026 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants