More defines for TZ_INFO

Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Mon Sep 6 06:28:17 CDT 2004


      
Changelog:
	dlls/ntdll/time.c:
	Add some more defines and tell the user about missing translations

On my system, "MEST" is returned as the zone name in the "date" command. This
caused TIME_GetTZAsStr to return an empty string, and Xilinx ISE webupdate
wrote
Mon Sep 06 13:08:19  2004:: version=6.2.03i
instead of 
Mon Sep 06 13:08:19 CEDT 2004:: version=6.2.03i
and as consequence the line was parsed wrong. Actually any string willl help
webupdate...

-- 
Uwe Bonnes                bon at elektron.ikp.physik.tu-darmstadt.de

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
Index: wine/dlls/ntdll/time.c
===================================================================
RCS file: /home/wine/wine/dlls/ntdll/time.c,v
retrieving revision 1.45
diff -u -w -r1.45 time.c
--- wine/dlls/ntdll/time.c	13 Aug 2004 23:53:44 -0000	1.45
+++ wine/dlls/ntdll/time.c	6 Sep 2004 11:18:50 -0000
@@ -151,6 +151,12 @@
    {"CEST",
     {'C','e','n','t','r','a','l',' ','E','u','r','o','p','e',' ','S','t','a',
      'n','d','a','r','d',' ','T','i','m','e','\0'}, -120, 1},
+   {"MET",
+    {'C','e','n','t','r','a','l',' ','E','u','r','o','p','e',' ','S','t','a',
+     'n','d','a','r','d',' ','T','i','m','e','\0'}, -60, 0},
+   {"MEST",
+    {'C','e','n','t','r','a','l',' ','E','u','r','o','p','e',' ','D','a','y',
+     'l','i','g','h','t',' ','T','i','m','e','\0'}, -120, 1},
    {"WAT",
     {'W','.',' ','C','e','n','t','r','a','l',' ','A','f','r','i','c','a',' ',
      'S','t','a','n','d','a','r','d',' ','T','i','m','e','\0'}, -60, 0},
@@ -748,7 +754,8 @@
          )
             return TZ_INFO[i].psTZWindows;
    }
-
+   FIXME("Can't match system time zone name \"%s\" to an entry in TZ_INFO\n",psTZName);
+   FIXME(" Please add appropriate entry to TZ_INFO and submit as patch to wine-patches\n");
    return NULL;
 }
 



More information about the wine-patches mailing list