GNU bug report logs - #26293
GNU date program

Previous Next

Package: coreutils;

Reported by: Dean Gibson AE7Q <wa7dem.stuff <at> ae7q.com>

Date: Wed, 29 Mar 2017 07:48:01 UTC

Severity: normal

Tags: notabug

Done: Assaf Gordon <assafgordon <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


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

From: Dean Gibson AE7Q <wa7dem.stuff <at> ae7q.com>
To: bug-coreutils <at> gnu.org
Subject: GNU date program
Date: Tue, 28 Mar 2017 19:26:06 -0700
[Message part 1 (text/plain, inline)]
Consider: "date -d '2017-03-28 17:12:34 + 3 hours'"

In "date (coreutils) 5.2.1  (March 2004)" it gives "Tue Mar 28 20:12:34 
PDT 2017".

In "GNU coreutils 8.22 February 2016)" it gives "Tue Mar 28 08:12:34 PDT 
2017".

Both servers use /etc/localtime -> /usr/share/zoneinfo/PST8PDT

If I insert "PDT" in the original string after the time, it works on 
both servers.  Unfortunately, since the servers run in an area that is 
subject to daylight savings time part of the year, hard coding the 'PDT' 
zone in the script it was in, is not appropriate.

On both servers, "date -d '2017-03-28 17:12:34 3 hours ago'" works. Is 
there a "3 hours ahead"-type phrase???

I have settled on "... 21 hours ago tomorrow", which works on both servers.

[Message part 2 (text/html, inline)]

This bug report was last modified 8 years and 59 days ago.

Previous Next


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