bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Date calculations bug


From: Stefan Alpers
Subject: Date calculations bug
Date: Fri, 2 Dec 2005 17:16:24 +0100

Hi,

I probably found a bug in the core utils date package. Today
(2005-12-02) I used date to calculate the date for 30 days in advance
which returned 2005-01-01. this result is obviously wrong as it lies
in the past. This was run on a Suse Linux 9.1 fully patched. I could
reproduce these results on a Debian 3.1 fully patched.
Attached you find a screenshot.

Regards,

Stefan


---------------------------------
address@hidden:>date +"%G-%m-%d"
2005-12-02
address@hidden:>date  -d +30days +"%G-%m-%d"
2005-01-01
address@hidden:>date --version
date (coreutils) 5.2.1
Written by David MacKenzie.

Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
address@hidden:>
--------------------------------------

Attachment: date.jpg
Description: JPEG image


reply via email to

[Prev in Thread] Current Thread [Next in Thread]