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


Message #30 received at 79261 <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: james <at> nurealm.net
Cc: 79261 <at> debbugs.gnu.org, Aurelien Jarno <aurelien <at> aurel32.net>
Subject: Re: bug#79261: coreutils 9.7 "date -u" - timezone offset is in the
 wrong direction
Date: Sun, 24 Aug 2025 16:17:12 -0700
On 2025-08-24 14:33, James Feeney via GNU coreutils Bug Reports wrote:
> reporting UTC in 12 hour format is just plain wrong.

No it's fine, actually. UTC is a world-wide standard; it's not local to 
Greenwich. Many people prefer 12-hour format, and there's nothing wrong 
with displaying UTC that way.

And even if I agreed with you, longstanding practice is to for "date -u" 
to respect the current locale, and POSIX requires this behavior. So 
there are good reasons for keeping the behavior the way it is.

To get the behavior you prefer, you can run "LC_ALL=C date -u", "date -u 
+'%Y-%m-%d %H:%M:%S'", or similar commands.




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.