Red Hat Bugzilla – Bug 88207
date does not calculate yesterday properly with Standard Time to Day light savings time change
Last modified: 2005-10-31 17:00:50 EST
Description of problem:
The date command as provided by gnu-sh-utils 2.0.11 does not properly calculate
the date for yesterday.
date --date=yesterday does NOT work with changes from Standard time to Daylight
[root@adsfa root]# date --date=yesterday
Sat Apr 5 23:27:59 EST 2003
[central@adsfa central]$ date
Mon Apr 7 00:33:30 EDT 2003
Version-Release number of selected component (if applicable):
ALL the time
Steps to Reproduce:
1. Set date on computer to Sat, April 7, between 12-1am
2. Run date --date=yesterday
The date program should properly caluclate the date. It appears the date
command is just subtracting 24hours from the said time. This is incorrect.
This may also have a problem in other timezones as Europe changes before the US.
We don't ship coreutils in Red Hat Linux 9. Perhaps you meant coreutils 4.5.3.
Sorry it is sh-utils. I thought I selected the correct name.
I made a mistake typing 'We don't ship coreutils in Red Hat Linux 9'; I meant to
write 'We don't ship sh-utils in Red Hat Linux 9'. coreutils is the correct