tags 22397 notabug
close 22397
stop

(triaging old bugs)

On 18/01/16 07:16 AM, Pádraig Brady wrote:

On 18/01/16 03:53, Adam Danischewski wrote:
$> date
Sun Jan 17 22:49:40 EST 2016
$> date -d"04:00"
Sun Jan 17 04:00:00 EST 2016
$> date -d"04:00 +1 day"
Sun Jan 17 22:00:00 EST 2016

To fix this, a work around for me now is:
$> date -d"$(date -d"04:00") +1 day"
Mon Jan 18 04:00:00 EST 2016

The +1 is taken as a timezone offset.
You'll want:

date -d '04:00 today +1 day'

Note also the relative date discussion at:
http://bugs.gnu.org/18159

date now supports the "--debug" option
to make such troubleshooting easier.

With no further comments in over a year,
I'm closing this bug.

-assaf




Reply via email to