Bug 88207 - date does not calculate yesterday properly with Standard Time to Day light savings time change
date does not calculate yesterday properly with Standard Time to Day light sa...
Product: Red Hat Linux
Classification: Retired
Component: coreutils (Show other bugs)
All Linux
high Severity high
: ---
: ---
Assigned To: Tim Waugh
Ben Levenson
Depends On:
  Show dependency treegraph
Reported: 2003-04-07 13:38 EDT by David Dombek
Modified: 2005-10-31 17:00 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2003-04-07 15:51:34 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description David Dombek 2003-04-07 13:38:51 EDT
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 13:50:19 EDT
We don't ship coreutils in Red Hat Linux 9.  Perhaps you meant coreutils 4.5.3.
Comment 2 Tim Waugh 2003-04-07 13:51:42 EDT
Reported upstream.
Comment 3 David Dombek 2003-04-07 14:04:09 EDT
Sorry it is sh-utils.  I thought I selected the correct name.

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

Note You need to log in before you can comment on or make changes to this bug.