Bug 88207

Summary: date does not calculate yesterday properly with Standard Time to Day light savings time change
Product: [Retired] Red Hat Linux Reporter: David Dombek <dombek>
Component: coreutilsAssignee: Tim Waugh <twaugh>
Status: CLOSED UPSTREAM QA Contact: Ben Levenson <benl>
Severity: high Docs Contact:
Priority: high    
Version: 9   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-04-07 19:51:34 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description David Dombek 2003-04-07 17:38:51 UTC
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 
savings time

[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):

How reproducible:
ALL the time

Steps to Reproduce:
1. Set date on computer to Sat, April 7, between 12-1am
2. Run date --date=yesterday
Actual results:
see above

Expected results:
The date program should properly caluclate the date.  It appears the date 
command is just subtracting 24hours from the said time.  This is incorrect.

Additional info:

This may also have a problem in other timezones as Europe changes before the US.

Comment 1 Tim Waugh 2003-04-07 17:50:19 UTC
We don't ship coreutils in Red Hat Linux 9.  Perhaps you meant coreutils 4.5.3.

Comment 2 Tim Waugh 2003-04-07 17:51:42 UTC
Reported upstream.

Comment 3 David Dombek 2003-04-07 18:04:09 UTC
Sorry it is sh-utils.  I thought I selected the correct name.


Comment 4 Tim Waugh 2003-04-07 19:51:34 UTC
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