Subject: Re: bug#17451: date command: Bug?
From: Eric Blake <[email-masked]>
To: "Yin, Dazhong@ARB" <[email-masked]>, [email-masked]
Date: Sat, 10 May 2014 13:19:03 -0600
List-Id: <debbugs-submit.debbugs.gnu.org>

tag 17451 notabug
thanks

On 05/09/2014 12:07 PM, Yin, Dazhong@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