GNU bug report logs - #79261
coreutils 9.7 "date -u" - timezone offset is in the wrong direction

Previous Next

Package: coreutils;

Reported by: james <at> nurealm.net

Date: Mon, 18 Aug 2025 02:12:02 UTC

Severity: normal

Tags: notabug

Done: Pádraig Brady <P <at> draigBrady.com>

Full log


View this message in rfc822 format

From: James Feeney <james <at> nurealm.net>
To: 79261 <at> debbugs.gnu.org
Subject: bug#79261: coreutils 9.7 "date -u" - timezone offset is in the wrong direction
Date: Sun, 17 Aug 2025 10:02:40 -0600
Arch Linux
coreutils 9.7-1

$ timedatectl;date;date -u
               Local time: Sun 2025-08-17 09:50:24 MDT
           Universal time: Sun 2025-08-17 15:50:24 UTC
                 RTC time: Sun 2025-08-17 15:50:24
                Time zone: US/Mountain (MDT, -0600)
System clock synchronized: yes
              NTP service: active
          RTC in local TZ: no
Sun Aug 17 09:50:24 AM MDT 2025
Sun Aug 17 03:50:24 PM UTC 2025

`timedatectl` is correct.
`date` is correct.
`date -u` is off by 2x the timezone offset, showing UTC as 6 hours earlier, which is wrong, instead of 6 hours later, which is correct.


Please fix.

James




This bug report was last modified 13 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.