You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
date: strftime ignores flags and widths on %N (nanoseconds) #11658
GNU date honours strftime flags and widths on %N (nanoseconds). uutils ignores or mishandles them: %_3N should space-pad to width 3, and %-N should still emit the full 9-digit default, but uutils emits a single 0.
Found by a fuzz_date run.
Reproduction
$ LC_ALL=C TZ=UTC /usr/bin/date -d '@0''+%_3N'| od -c | head -10000000 0 \n
$ LC_ALL=C TZ=UTC target/debug/coreutils date -d '@0''+%_3N'| od -c | head -10000000 0 \n
$ LC_ALL=C TZ=UTC /usr/bin/date -d '@0''+%-N'000000000
$ LC_ALL=C TZ=UTC target/debug/coreutils date -d '@0''+%-N'0
@anastygnome It seems the issue described in the original report is no longer reproducible. If you’re aware of any other related issues, could you please open a separate issue to track them?
Activity
date: fix strftime flags and widths on %N (nanoseconds)
test: do not use nanoseconds width specifier in date command
test: do not use nanoseconds width specifier in date command
test: do not use nanoseconds width specifier in date command
selftests: mptcp: drop nanoseconds width specifier
selftests: mptcp: drop nanoseconds width specifier
selftests: mptcp: drop nanoseconds width specifier
selftests: mptcp: drop nanoseconds width specifier
selftests: mptcp: drop nanoseconds width specifier
selftests: mptcp: drop nanoseconds width specifier
selftests: mptcp: drop nanoseconds width specifier
selftests: mptcp: drop nanoseconds width specifier
139 remaining items
selftests: net: make busywait timeout clock portable
selftests: net: make busywait timeout clock portable
selftests: mptcp: drop nanoseconds width specifier
selftests: net: make busywait timeout clock portable
xtqqczze commentedon Oct 10, 2026
@anastygnome Is this issue not fully resolved?
anastygnome commentedon Oct 10, 2026
No, there were missing edge cases, see unignored tests
xtqqczze commentedon Nov 20, 2026
@anastygnome have the edge cases now been fixed?
anastygnome commentedon Nov 20, 2026
@xtqqczze we'll need a new parse_datetime release
xtqqczze commentedon Nov 20, 2026
OK would you open an issue to track the edge cases?
anastygnome commentedon Nov 20, 2026
@sylvestre can we reopen
xtqqczze commentedon Nov 20, 2026
@anastygnome It seems the issue described in the original report is no longer reproducible. If you’re aware of any other related issues, could you please open a separate issue to track them?