GNU bug report logs - #8357
Improve yesterday and tomorrow calculations for common cases

Previous Next

Package: coreutils;

Reported by: Heikki Orsila <shd <at> modeemi.fi>

Date: Sun, 27 Mar 2011 21:55:02 UTC

Severity: wishlist

Tags: notabug

Full log


View this message in rfc822 format

From: Heikki Orsila <shd <at> modeemi.fi>
To: 8357 <at> debbugs.gnu.org
Subject: bug#8357: coreutils bug in date
Date: Mon, 28 Mar 2011 00:43:54 +0300
Hello, I found a case where GNU date works pretty oddly.
At 2011-03-27 Finland moved to 'summer time'. After midnight at 2011-03-28
our web site's cron script did (date -I -d yesterday) which yielded
unexpected results:

$ date
Mon Mar 28 00:36:07 EEST 2011
$ date -I -d yesterday
2011-03-26
$ date -I -d '24 hours ago'
2011-03-26

Our scripts produced bad results due to this "feature/bug". Maybe our fault, 
but this is definitely unexpected behaviour.

-- 
Heikki Orsila
heikki.orsila <at> iki.fi
http://www.iki.fi/shd




This bug report was last modified 13 years and 325 days ago.

Previous Next


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