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 #12 received at 17451-done <at> debbugs.gnu.org (full text, mbox):

From: Eric Blake <eblake <at> redhat.com>
To: "Yin, Dazhong <at> ARB" <dyin <at> arb.ca.gov>, 17451-done <at> debbugs.gnu.org
Subject: Re: bug#17451: date command: Bug?
Date: Sat, 10 May 2014 13:19:03 -0600
[Message part 1 (text/plain, inline)]
tag 17451 notabug
thanks

On 05/09/2014 12:07 PM, Yin, Dazhong <at> ARB wrote:
> When querying the time zone, the date command cannot deal with the hour when time changes from standard time to daylight saving time.

That's because that hour does not exist in your timezone.

All of your examples look like correct behavior to me.  You've asked a FAQ:
https://www.gnu.org/software/coreutils/faq/coreutils-faq.html#The-date-command-is-not-working-right_002e

Our advice is to compute dates in UTC, or when sticking to a locale with
daylight savings, then compute dates relative to noon rather than near
the hour that might disappear or be doubled.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

[signature.asc (application/pgp-signature, attachment)]

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

Previous Next


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