[Bug 2148249] [NEW] date: strftime ignores flags and widths on %N (nanoseconds)

Nick Rosbrook 2148249 at bugs.launchpad.net
Mon Apr 13 20:03:37 UTC 2026


Public bug reported:

I initially observed this in systemd's test suite. Reproducer:

$ date --version
date (uutils coreutils) 0.7.0
$ date +%s%6N
1776110477753528961
$ gnudate +%s%6N
1776110490234202

Note the different widths, i.e. uutils date ignores the '6' in the
format specifier.

Upstream bug https://github.com/uutils/coreutils/issues/11658

** Affects: rust-coreutils (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: rls-rr-incoming

** Tags added: rls-rr-incoming

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to rust-coreutils in Ubuntu.
https://bugs.launchpad.net/bugs/2148249

Title:
  date: strftime ignores flags and widths on %N (nanoseconds)

Status in rust-coreutils package in Ubuntu:
  New

Bug description:
  I initially observed this in systemd's test suite. Reproducer:

  $ date --version
  date (uutils coreutils) 0.7.0
  $ date +%s%6N
  1776110477753528961
  $ gnudate +%s%6N
  1776110490234202

  Note the different widths, i.e. uutils date ignores the '6' in the
  format specifier.

  Upstream bug https://github.com/uutils/coreutils/issues/11658

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/rust-coreutils/+bug/2148249/+subscriptions





More information about the foundations-bugs mailing list