[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Bug in GNU Date 2.0.11
From: |
Anthony Valentine |
Subject: |
Bug in GNU Date 2.0.11 |
Date: |
07 Apr 2002 08:21:51 -0800 |
Hello.
It looks like I have found a bug in GNU date 2.0.11 (which appears to be
the latest version).
address@hidden /home/amv]# date --version
date (GNU sh-utils) 2.0.11
The bug occurs with the '-d' switch when asked for the 'last
[weekday]'. I have played with it a bit and it seems to only happen
during this week (week of 4/7/02).
Here are some examples:
address@hidden /home/amv]# date
Sun Apr 7 07:57:31 AKDT 2002
address@hidden ~]$ date -d 'last friday' +%A
Thursday
address@hidden ~]$ date -d 'last thursday' +%A
Wednesday
address@hidden ~]$ date -d 'last wednesday' +%A
Tuesday
address@hidden /home/amv]# date -s "Sun Apr 9 07:57:31 2002"
Tue Apr 9 07:57:31 AKDT 2002
address@hidden /home/amv]# date -d 'last friday' +%A
Thursday
address@hidden /home/amv]# date -d 'last thursday' +%A
Wednesday
address@hidden /home/amv]# date -d 'last wednesday' +%A
Tuesday
address@hidden /home/amv]# date -s "Tue Apr 10 07:57:31 2002"
Wed Apr 10 07:57:31 AKDT 2002
address@hidden /home/amv]# date -d 'last friday' +%A
Thursday
address@hidden /home/amv]# date -s "Sat Apr 13 07:57:31 2002"
Sat Apr 13 07:57:31 AKDT 2002
address@hidden /home/amv]# date -d 'last friday' +%A
Friday
address@hidden /home/amv]# date -s "Sat Apr 01 07:57:31 2002"
Sat Apr 13 07:57:31 AKDT 2002
address@hidden /home/amv]# date -d 'last friday' +%A
Friday
So, if I change the date outside of this week, it works, otherwise it
reports the day before the correct day.
I can reproduce the problem on a GNU/Linux system (RedHat 7.2) and an
AIX system.
Hopefully I have given you enough info, but if not, please do not
hesitate to contact me. I can be reached at address@hidden
Thanks!
Anthony Valentine
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Bug in GNU Date 2.0.11,
Anthony Valentine <=