GNU bug report logs - #37060
bug in date / coreutils

Previous Next

Package: coreutils;

Reported by: jensbaltrusch <at> vfemail.net

Date: Sat, 17 Aug 2019 03:38:02 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#37060: closed (bug in date / coreutils)
Date: Sat, 17 Aug 2019 05:21:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Fri, 16 Aug 2019 22:19:59 -0700
with message-id <8051f02c-c976-1525-3b41-3b9b9621643a <at> cs.ucla.edu>
and subject line Re: bug#37060: bug in date / coreutils
has caused the debbugs.gnu.org bug report #37060,
regarding bug in date / coreutils
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
37060: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=37060
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: jensbaltrusch <at> vfemail.net
To: bug-coreutils <at> gnu.org
Subject: bug in date / coreutils
Date: Sat, 17 Aug 2019 03:32:58 +0000
Hi,

I believe there is a bug in the date utility.

My system is set to Berlin time, now daylight saving time.

When I put in

  date --date='TZ="Europe/Berlin" now'

I get correctly

  Sat 17 Aug 05:11:18 CEST 2019

However, putting in

  date --date='TZ="America/Los_Angeles" now'

yields

  Sat 17 Aug 14:12:03 CEST 2019

which is nonsense. Also, putting in

  date --date='TZ="Asia/Shanghai" now'

giving

  Fri 16 Aug 23:13:36 CEST 2019

which is definitely wrong, as I am currently in China where the sun is  
up and shining.



I get from date --version the following:


date (GNU coreutils) 8.23
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by David MacKenzie.


My system is

Linux 3.16.0-4-amd64 #1 SMP Debian 3.16.39-1+deb8u1 (2017-02-22)  
x86_64 GNU/Linux


I get the same kind of error using 'today' instead of 'now', or  
'tomorrow', '1 hour ago', etc.

In case you need further information, please do not hesitate to contact me.

Best,
Jens Baltrusch





[Message part 3 (message/rfc822, inline)]
From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Jens Baltrusch <jensbaltrusch <at> vfemail.net>
Cc: 37060-done <at> debbugs.gnu.org
Subject: Re: bug#37060: bug in date / coreutils
Date: Fri, 16 Aug 2019 22:19:59 -0700
I think that bug was fixed in 2017, and your coreutils version 8.23 predates the 
fix. I suggest upgrading to the current version (8.31) of coreutils, as 8.23 is 
pretty old anyway.


This bug report was last modified 5 years and 364 days ago.

Previous Next


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