** Also affects: rust-coreutils (Ubuntu Resolute)
   Importance: Undecided
       Status: New

** Also affects: rust-coreutils (Ubuntu Stonking)
   Importance: Undecided
       Status: New

** Summary changed:

- `sudo date 06110816` fails
+ [SRU] `sudo date 06110816` fails

** Description changed:

+ [ Impact ]
+ 
  The date command interprets dates as numbers instead of as string:
  
  On Jammy:
  $ sudo date 06110812
  Thu Jun 11 08:12:00 CEST 2026
  
  On Resolute:
  $ sudo date 06110812
  date: invalid date '6110812'
  $ sudo /usr/lib/cargo/bin/coreutils/date 06110816
  date: invalid date '6110816'
  
  As a workaround the ISO format can be used. But I still expect the date
  command to conform to its online help:
  
  $ date --help
  date [OPTION]... [MMDDhhmm[[CC]YY][.ss]]
- --- 
+ 
+ [ Test Plan ]
+ 
+ Check that setting the date works with leading 0 works for the case:
+ 
+ MMDDhhmm
+ MMDDhhmmYY
+ MMDDhhmmCCYY
+ MMDDhhmmCCYY.ss
+ 
+ Check that setting the date works using the ISO format.
+ 
+ [ Where problems could occur ]
+ 
+ <!-- To be filled when solution is known -->
+ 
+ [ Other Info ]
+ 
+ ---
  ProblemType: Bug
  ApportVersion: 2.34.0-0ubuntu2
  Architecture: amd64
  CasperMD5CheckResult: unknown
  CurrentDesktop: KDE
  DistroRelease: Ubuntu 26.04
  InstallationDate: Installed on 2025-06-20 (356 days ago)
  InstallationMedia: Kubuntu 25.10 "Questing Quokka" - Daily amd64 (20250607)
  NonfreeKernelModules: zfs
  Package: rust-coreutils 0.8.0-0ubuntu3
  PackageArchitecture: amd64
  ProcVersionSignature: Ubuntu 7.0.0-22.22-generic 7.0.0
  Tags: resolute wayland-session
  Uname: Linux 7.0.0-22-generic x86_64
  UpgradeStatus: Upgraded to resolute on 2025-10-30 (223 days ago)
  UserGroups: adm cdrom dialout dip libvirt lpadmin lxd plugdev sambashare sudo
  _MarkForUpload: True

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

Title:
  [SRU] `sudo date 06110816` fails

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


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to