bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: Bug in GNU date


From: Paul Eggert
Subject: Re: Bug in GNU date
Date: Fri, 5 Apr 2002 01:35:57 -0800 (PST)

> From: Niall O Broin <address@hidden>
> Date: Thu, 4 Apr 2002 16:11:58 +0100
> 
> I have verified this with several distributions of Gnu/Linux, all of which
> used sh-utils 2.0. I got and compiled 2.0.11 from alpha.gnu.org and the bug
> persists in this version.

I can't reproduce it on my GNU/Linux box, running Red Hat 7.
Possibly it has something to do with your system time zone setting?
I looked in the latest sources, and "date" doesn't mess with TZ
unless you use "date -u", so I'm at a loss as to why your problem
would be due to a bug in GNU "date" itself.

Here's how I tried to reproduce it:

address@hidden eggert]$ unset TZ
address@hidden eggert]$ for day in mon tues wednes thurs fri satur sun; do date 
-d "last ${day}day"; done
Mon Apr  1 00:00:00 PST 2002
Tue Apr  2 00:00:00 PST 2002
Wed Apr  3 00:00:00 PST 2002
Thu Apr  4 00:00:00 PST 2002
Fri Mar 29 00:00:00 PST 2002
Sat Mar 30 00:00:00 PST 2002
Sun Mar 31 00:00:00 PST 2002
address@hidden eggert]$ date --version
date (GNU sh-utils) 2.0
Written by David MacKenzie.

Copyright (C) 1999 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 eggert]$ uname -a
Linux poe.circle-c.com 2.2.16-22enterprise #1 SMP Tue Aug 22 16:29:32 EDT 2000 
i686 unknown



reply via email to

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