Skip to content

date: use PosixCustom formatting for GNU-compatible output#10245

Merged
sylvestre merged 1 commit intouutils:mainfrom
ChrisDryden:date-posix-custom-formatting
Jan 14, 2026
Merged

date: use PosixCustom formatting for GNU-compatible output#10245
sylvestre merged 1 commit intouutils:mainfrom
ChrisDryden:date-posix-custom-formatting

Conversation

@ChrisDryden
Copy link
Collaborator

This solves three of the tests in the date gnu integration tests that are detailed here:

#10242

5, 8, tz-5wf

The high level gist is that the default strtime is uses %-I instead of %I and th Jiff library has the ability to set your own Config to PosixCustom that defaults %I. Also as part of this PR theres the .lenient(true) where Jiff will return an error for incorrectly made modifiers, and GNU will just take it literally without an error. Luckily Jiff has this flag that lets us keep the GNU behaviour there.

@ChrisDryden ChrisDryden force-pushed the date-posix-custom-formatting branch from ccf71af to 1688373 Compare January 14, 2026 17:18
@github-actions
Copy link

GNU testsuite comparison:

Skip an intermittent issue tests/shuf/shuf-reservoir (fails in this run but passes in the 'main' branch)
Skip an intermittent issue tests/sort/sort-stale-thread-mem (fails in this run but passes in the 'main' branch)

@sylvestre sylvestre merged commit 450e7cf into uutils:main Jan 14, 2026
132 checks passed
mattsu2020 pushed a commit to mattsu2020/coreutils that referenced this pull request Jan 23, 2026
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.

2 participants