Bug 63349

Summary: date is broken.
Product: [Retired] Red Hat Linux Reporter: hjl
Component: sh-utilsAssignee: wdovlrrw <brosenkr>
Status: CLOSED CURRENTRELEASE QA Contact: Ben Levenson <benl>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.1   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-06-10 15:43:21 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description hjl 2002-04-12 20:50:23 UTC
# date -d "1018569600 sec jan. 1, 1970 utc" 
Thu Apr 11 18:00:00 PDT 2002

I am expecting:

Thu Apr 11 17:00:00 PDT 2002

Comment 1 Bernhard Rosenkraenzer 2002-06-10 15:43:13 UTC
I'm getting the correct result on 7.3. 


Comment 2 Mike McLean 2002-07-10 15:08:04 UTC
Confirmed.  this bug seems confined to 7.1.  However it appears to be fixed in
7.2 on.

On the 7.1 machine, I get:
---
[root@i386-71 /root]# date -d "1018569600 sec jan. 1, 1970 utc"
Thu Apr 11 21:00:00 EDT 2002
[root@i386-71 /root]# date -d "Thu Apr 11 21:00:00 EDT 2002" +%s
1018573200
[root@i386-71 /root]# date -d "1018573200 sec jan. 1, 1970 utc"
Thu Apr 11 22:00:00 EDT 2002

And on the 7.2 machine I get:
---
[root@i386-72 root]# date -d "1018569600 sec jan. 1, 1970 utc"
Thu Apr 11 20:00:00 EDT 2002
[root@i386-72 root]# date -d "Thu Apr 11 20:00:00 EDT 2002" +%s
1018569600