Bug 45326
Summary: | Bug in date parsing in /bin/date (sh-utils-2.0.13) | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Zvi Har'El <rl> |
Component: | sh-utils | Assignee: | Bernhard Rosenkraenzer <bero> |
Status: | CLOSED RAWHIDE | QA Contact: | Aaron Brown <abrown> |
Severity: | medium | Docs Contact: | |
Priority: | high | ||
Version: | 7.1 | CC: | david.madore |
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: | 2001-06-24 07:07:19 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
Zvi Har'El
2001-06-21 12:56:58 UTC
The most recent version of sh-utils is sh-utils-2.0.11 (dated Oct 29 2000), available at: ftp://alpha.gnu.org/gnu/fetish/sh-utils-2.0.11.tar.gz ftp://freefriends.org/gnu/fetish/sh-utils-2.0.11.tar.gz We updated to 2.0.11 on May 13. Please reopen this bug. It seems that the problem persists in recent versions of sh-utils in at least some cases. Here is a "proof": vega david ~ $ TZ=GMT date --date="2003-03-30 02:31:27+0000" +%s 1048991487 vega david ~ $ TZ=Europe/Paris date --date="2003-03-30 02:31:27+0000" +%s 1048995087 vega david ~ $ rpm -qf `which date` sh-utils-2.0.11-14 the second number above (1048995087) is wrong, the first (1048991487) is correct: march 30, 2003 at 02:31:27 GMT is 1048991487 seconds post the Unix epoch, and this should not depend on time zone; apparently, the GNU date parser is confused by the the switch to daylite saving time in the Europe/Paris time zone between 2003-03-30T01:59:59+0100 and 2003-03-30T03:00:00+0200, but I'm not sure exactly what is going wrong here. Anyway, the above output is definitely a bug in GNU date and should be forwarded to the GNU date maintainers (if such exist). The problem is certainly *different* from the one originally reported. Paris has the correct output in the test originally done: $ TZ=Europe/Paris /bin/date -u -d "1970-01-01 UTC `/bin/date +%s \ -d \"2003-3-30 02:31:27+0000\"` sec" Sun Mar 30 02:31:27 UTC 2003 $ TZ= /bin/date -u -d "1970-01-01 UTC `/bin/date +%s \ -d \"2003-3-30 02:31:27+0000\"` sec" Sun Mar 30 02:31:27 UTC 2003 This is in RedHat Linux 8.0, sh-utils-2.0.12-3. No change in sh-utils 2.0.15 <bug-sh-utils> |