GNU bug report logs - #17451
date command: Bug?

Previous Next

Package: coreutils;

Reported by: Paul Eggert <eggert <at> cs.ucla.edu>

Date: Fri, 9 May 2014 18:18:02 UTC

Severity: wishlist

Tags: notabug, patch

Full log


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

From: "Yin, Dazhong <at> ARB" <dyin <at> arb.ca.gov>
To: "bug-coreutils <at> gnu.org" <bug-coreutils <at> gnu.org>
Subject: date command: Bug?
Date: Fri, 9 May 2014 18:07:06 +0000
[Message part 1 (text/plain, inline)]
When querying the time zone, the date command cannot deal with the hour when time changes from standard time to daylight saving time.  Below examples show the tests done in the Pacific time zone.

-----------------------------------------------------------------------------------------------------------------------------------------------

date -d "20120311 01" +%:::z
-08

date -d "20120311 02" +%:::z
date: invalid date `20120311 02'

date -d "20120311 03" +%:::z
-07

date -d "20140309 01" +%:::z
-08

date -d "20140309 02" +%:::z
date: invalid date `20140309 02'

date -d "20140309 03" +%:::z
-07
[Message part 2 (text/html, inline)]

This bug report was last modified 11 years and 41 days ago.

Previous Next


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