Public bug reported:

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]]
--- 
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

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


** Tags: apport-collected resolute wayland-session

** Tags added: apport-collected resolute wayland-session

** Description changed:

  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]]
+ --- 
+ 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:
  `sudo date 06110816` fails

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


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

Reply via email to