[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Date calculations bug
From: |
Jim Meyering |
Subject: |
Re: Date calculations bug |
Date: |
Fri, 02 Dec 2005 18:37:21 +0100 |
Stefan Alpers <address@hidden> wrote:
> 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.
Thanks for the report, but that's not a bug.
You're using %G, which is the year corresponding to the
week number reported by %V: 52, in this case,
so the corresponding year is indeed 2005.
Perhaps you meant %Y?