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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 37060 in the body.
You can then email your comments to 37060 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-coreutils <at> gnu.org:
bug#37060; Package coreutils. (Sat, 17 Aug 2019 03:38:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to jensbaltrusch <at> vfemail.net:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Sat, 17 Aug 2019 03:38:03 GMT) Full text and rfc822 format available.

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

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







Reply sent to Paul Eggert <eggert <at> cs.ucla.edu>:
You have taken responsibility. (Sat, 17 Aug 2019 05:21:02 GMT) Full text and rfc822 format available.

Notification sent to jensbaltrusch <at> vfemail.net:
bug acknowledged by developer. (Sat, 17 Aug 2019 05:21:03 GMT) Full text and rfc822 format available.

Message #10 received at 37060-done <at> debbugs.gnu.org (full text, mbox):

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.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 14 Sep 2019 11:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 220 days ago.

Previous Next


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