Bug 392011 - Incorrect UTC conversion of CST timestamps by the 'date' utility
Incorrect UTC conversion of CST timestamps by the 'date' utility
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: coreutils (Show other bugs)
i686 Linux
low Severity low
: ---
: ---
Assigned To: Ondrej Vasik
Depends On:
  Show dependency treegraph
Reported: 2007-11-20 07:10 EST by Marc Girod
Modified: 2007-11-30 17:07 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-11-20 07:32:59 EST
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 Marc Girod 2007-11-20 07:10:58 EST
Description of problem:

~> date -u -d 'Nov 19 11:27 CST 2007'
Mon Nov 19 17:27:00 UTC 2007

Note: CST is China Standard Time.
The correct value was: Mon Nov 19 03:27:00 UTC 2007

Version-Release number of selected component (if applicable):

~> rpm -q tzdata
~> rpm -q coreutils

How reproducible:

Fully reproducible.

Steps to Reproduce:
1. date -u -d 'Nov 19 11:27 CST 2007'
Actual results:

Mon Nov 19 17:27:00 UTC 2007

Expected results:

Mon Nov 19 03:27:00 UTC 2007

Additional info:

Found first on RHEL 3... with:
tzdata-2003c-1 and coreutils-4.5.3-26
Comment 1 Ondrej Vasik 2007-11-20 07:32:59 EST
As is mentioned in sourcecodes of getdate.y (coreutils-{version}/lib/) is
impossible to make 3 letters long shortcuts of date without conflicts. For
example - EST is US Eastern standard time and Eastern standard time in Australia
- time zones of course differ. This one is conflict between China standard time
and US Central standard time. 
I will citate source code of coreutils:
"You cannot rely on getdate to handle arbitrary time zone
abbreviations; use numeric abbreviations like `-0500' instead."

So sorry, can't help, NOTABUG

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