date command

"Blom, Theo" <[email protected]> Wed, 31 Jul 2002 14:45:32 +0200
Newsgroups gmane.comp.gnu.sh-utils.bugs
Message-ID <88C4EF60BC05D6119E3E0002A551BE6A7D6B33@nl-nwg-nt7.nieuwegein.ahrend.net>
Hello,

I have some problem with the 'date' command. Maybe it is a bug.

First the actually date:

[root@bb /root]# date
Wed Jul 31 14:41:53 CEST 2002
[root@bb /root]#

Then, when I run the following command I don't get the right answer.

[root@bb /root]# date --date "1 month ago" +%D
07/01/02
[root@bb /root]#

The month is the same. But the dat that now 31 is gets 01.

When I do the following.

[root@bb /root]# date --date "2 month ago" +%D
05/31/02
[root@bb /root]#

Then the month is getting right. Is this a bug or do I something wrong.

Sorry for the bad english. I hope you understood.

Regards Theo