severity 625909 normal
tags 625909 + unreproducible
thanks

Thanks for your report.  However I have set the bug severity to normal
since this type of bug is often reported but is almost always due to
timezone issues surrounding local Daylight Saving Time and not to an
actual bug in date.

David Pirotte wrote:
> david@rascar:~ 19 $ date --date="2010-10-17" +'%c'
> date: invalid date 2010-10-17'

I cannot reproduce this result.

  $ TZ=US/Mountain date --date="2010-10-17" +'%c'
  Sun 17 Oct 2010 12:00:00 AM MDT

What timezone are you using?  That is a critical piece of information
to understand what is happening.  This is very typical of reports from
users in a timezone where that time instant does not exist and
therefore is an invalid date.

Here is a useful reference to the interaction of date and timezones.

  
http://www.gnu.org/software/coreutils/faq/#The-date-command-is-not-working-right_002e

Does the information there help to identify a DST issue?

Try using a time away from midnight and toward noon which is usually
far away from DST changes.

  $ TZ=US/Mountain date --date="2010-10-17 12:00" +'%c'
  Sun 17 Oct 2010 12:00:00 PM MDT

Personally I prefer use of -R to produce an unambiguous standard time
string output format.

  $ TZ=US/Mountain date -R --date="2010-10-17 12:00"
  Sun, 17 Oct 2010 12:00:00 -0600

Bob



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to