Bug 8162

Summary: /bin/date cannot parse CEST timezone
Product: [Retired] Red Hat Linux Reporter: han.holl
Component: sh-utilsAssignee: bero
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6.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: 2000-01-05 13:19:08 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 han.holl 2000-01-04 13:29:16 UTC
date --date "Tue Apr 27 21:17:44 CEST 1999"
produces:
date: invalid date `Tue Apr 27 21:17:44 CEST 1999'

This is because CEST was accidentally omitted from
lib/getdate.c

Here is the patch. Please also inform the sh-utils mantainers.

Han Holl

--- sh-utils-1.16/lib/getdate.c.cest    Wed May 12 15:21:12 1999
+++ sh-utils-1.16/lib/getdate.c Wed May 12 15:22:48 1999
@@ -1612,6 +1612,7 @@
     { "nt",    tZONE,     HOUR (11) }, /* Nome */
     { "idlw",  tZONE,     HOUR (12) }, /* International Date Line West */
     { "cet",   tZONE,     -HOUR (1) }, /* Central European */
+    { "cest",  tDAYZONE,     -HOUR (1) },      /* Central European Summer
*/
     { "met",   tZONE,     -HOUR (1) }, /* Middle European */
     { "mewt",  tZONE,     -HOUR (1) }, /* Middle European Winter */
     { "mest",  tDAYZONE,  -HOUR (1) }, /* Middle European Summer */

Comment 1 Jeff Johnson 2000-01-05 13:19:59 UTC
Fixed in sh-utils-2.0-3. Thanks for the patch.