GNU bug report logs - #12772
date : Bug in handling human readable dates

Previous Next

Package: coreutils;

Reported by: ga <at> alexandersfeld.de

Date: Wed, 31 Oct 2012 15:59:01 UTC

Severity: normal

Tags: moreinfo, notabug

Done: Eric Blake <eblake <at> redhat.com>

Bug is archived. No further changes may be made.

Full log


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

From: Guido Ackermann <ga <at> alexandersfeld.de>
To: bug-coreutils <at> gnu.org
Subject: date : Bug in handling human readable dates
Date: Wed, 31 Oct 2012 11:00:22 +0100
Hello,
today i discovered a bug in the programm "date" handling human readable timeformats.
The bug:

# date --version
date (GNU coreutils) 8.5

# export LC_ALL="C" ;date
Wed Oct 31 10:57:06 CET 2012
# export LC_ALL="C" ;date -d"last month"
Mon Oct  1 11:57:23 CEST 2012
# export LC_ALL="C" ;date -d"next month"
Sat Dec  1 10:57:35 CET 2012

While aktual monthh is still Oct, previous month is shown as Oct too, and next month is shown as Dec.
Correctly "last month" should be Sep. "next month" should be Nov. 

regards,
	Guido Ackermann




This bug report was last modified 12 years and 210 days ago.

Previous Next


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