bug-coreutils
[Top][All Lists]
Advanced

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

Re: date: bug in calculating future dates


From: Philip Rowlands
Subject: Re: date: bug in calculating future dates
Date: Thu, 3 Aug 2006 17:17:45 +0100 (BST)

On Thu, 3 Aug 2006, Christian Hoffmann wrote:

address@hidden:~ $ date -d "2006-08-07 +230 days"
Sa Mär 24 23:00:00 CET 2007
address@hidden:~ $ date -d "2006-08-07 +231 days"
Mo Mär 26 00:00:00 CEST 2007
Sunday is missing

Notice that in your configured timezone, the DST offset changes between these two dates ("CET" vs "CEST"). I'd suggest that accounts for the missing day, and that using the --utc flag to date will clear up any ambiguity.


Cheers,
Phil




reply via email to

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