GNU bug report logs - #17161
date: confusing: "TIME -/+NUM" treated as time zone

Previous Next

Package: coreutils;

Reported by: "Marc R.J. Brevoort" <mrjb <at> dnd.utwente.nl>

Date: Tue, 1 Apr 2014 15:51:04 UTC

Severity: wishlist

Full log


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

From: "Marc R.J. Brevoort" <mrjb <at> dnd.utwente.nl>
To: 17161 <at> debbugs.gnu.org
Subject: Re: bug#17161: closed (Re: bug#17161: Bug in date arithmetic of date)
Date: Wed, 2 Apr 2014 10:17:55 +0200 (CEST)
Hello,

As a heads-up, the explanation that this is due to time zone+locale doesn't make sense:

mrjb <at> THE-D-MRJB:~$ date --utc -d "2014-03-11 12:34:56 -1 day" +"%Y-%m-%d 
%H:%M:%S"
2014-03-12 13:34:56
mrjb <at> THE-D-MRJB:~$ date --utc -d "2014-03-11 12:34:56 -2 days" +"%Y-%m-%d 
%H:%M:%S"
2014-03-12 14:34:56
mrjb <at> THE-D-MRJB:~$ date --utc -d "2014-03-11 12:34:56 -3 days" +"%Y-%m-%d 
%H:%M:%S"
2014-03-12 15:34:56

The more days I subtract, the more hours are added. If this were a time 
zone issue, the amount of hours added would be constant but the 
resulting date would not.

Best,
Marc

On Tue, 1 Apr 2014, GNU bug Tracking System wrote:

> Your bug report
>
> #17161: Bug in date arithmetic of date
>
> which was filed against the coreutils package, has been closed.
>
> The explanation is attached below, along with your original report.
> If you require more details, please reply to 17161 <at> debbugs.gnu.org.
>
> -- 
> 17161: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=17161
> GNU Bug Tracking System
> Contact help-debbugs <at> gnu.org with problems
>




This bug report was last modified 6 years and 245 days ago.

Previous Next


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