Skip to content

date: treat WET, WEST, CET, MET and EET as fixed offsets - #16605

Merged
sylvestre merged 3 commits into
uutils:mainfrom
binhvq:date-european-zone-abbreviations
Nov 27, 2026
Merged

sylvestre merged 3 commits into
uutils:mainfrom
binhvq:date-european-zone-abbreviations

Conversation

@binhvq

@binhvq binhvq commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

Closes #16604

CET, MET, WET and EET were looked up as the IANA zones of the same name, so a summer date picked up the DST offset, and WEST matched an unrelated zone. They are now in the fixed-offset table, so each abbreviation means one offset all year.

Comment thread tests/by-util/test_date.rs Outdated
}

#[test]
fn test_date_european_abbreviations_are_fixed_offsets() {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

same loop as test_date_accepts_gnu_timezone_abbreviations, could you please just add these cases there?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done, moved the cases into test_date_accepts_gnu_timezone_abbreviations.

@github-actions

Copy link
Copy Markdown

Binary size comparison:

Individual binary size comparison VS main (threshold: >=5% AND >=4 KB).

Total size of compared binaries: 155.49 MB (+108 KB, +0.07%)

Significant per-binary changes:
  env     1.20 MB ->    1.28 MB  (+80 KB, +6.51%)

@github-actions

Copy link
Copy Markdown

GNU testsuite comparison:

Congrats! The gnu test tests/env/env0-from is no longer failing!

@codspeed

codspeed Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Merging this PR will not alter performance

1 warning

⚠️ 2 benchmarks are dominated by system calls

System calls cannot be simulated consistently and are left out of the measure. The reported value understates the real cost. Switch to the Walltime instrument to measure them.

Learn more about system calls

See affected benchmarks

✅ 12 untouched benchmarks
⏩ 474 skipped benchmarks1


Comparing binhvq:date-european-zone-abbreviations (fa5de85) with main (0714639)2

Open in CodSpeed

Footnotes

  1. 474 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

  2. No successful run was found on main (932efe9) during the generation of this report, so 0714639 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report. ↩

…breviations

# Conflicts:
#	tests/by-util/test_date.rs
@sylvestre
sylvestre merged commit f49f301 into uutils:main Nov 27, 2026
106 of 107 checks passed
@sylvestre

Copy link
Copy Markdown
Contributor

Thanks for your PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

date: CET, MET, WET, EET and WEST are not parsed as fixed offsets

2 participants