Package: coreutils Version: 8.32-4+b1 Severity: normal X-Debbugs-Cc: lars.kinder...@reglos.de
Dear Maintainer, I found a problem in the date command, when parsing dates with the -d option: Separating date and time with a "T" gives an incorrect result for the time. This is correct: $ TZ=UTC date -d "20210922 0937" Wed Sep 22 09:37:00 UTC 2021 While this gives a wrong result: $ TZ=UTC date -d "20210922T0937" Wed Sep 22 16:37:00 UTC 2021 According to the GNU coreutils manual, available at https://www.gnu.org/software/coreutils/manual/html_node/Combined-date-and-time-of-day-items.html#Combined-date-and-time-of-day-items both alternatives should work the same: 29.5 Combined date and time of day items The ISO 8601 date and time of day extended format consists of an ISO 8601 date, a âTâ character separator, and an ISO 8601 time of day. This format is also recognized if the âTâ is replaced by a space. In this format, the time of day should use 24-hour notation... -- System Information: Debian Release: bookworm/sid APT prefers testing APT policy: (500, 'testing') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 5.10.0-8-amd64 (SMP w/4 CPU threads) Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages coreutils depends on: ii libacl1 2.3.1-1 ii libattr1 1:2.5.1-1 ii libc6 2.31-17 ii libgmp10 2:6.2.1+dfsg-1 ii libselinux1 3.1-3 coreutils recommends no packages. coreutils suggests no packages. -- no debconf information