apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject cvs commit: apr/time/win32 time.c
Date Thu, 23 Jan 2003 03:26:22 GMT
wrowe       2003/01/22 19:26:22

  Modified:    time/win32 time.c
  Log:
    After further evaluation, we will have to create our own implementation
    of SystemTimeToTzSpecificLocalTime() for Win9x.  Get the code building
    cleanly until that happens.
  
  Revision  Changes    Path
  1.46      +5 -4      apr/time/win32/time.c
  
  Index: time.c
  ===================================================================
  RCS file: /home/cvs/apr/time/win32/time.c,v
  retrieving revision 1.45
  retrieving revision 1.46
  diff -u -r1.45 -r1.46
  --- time.c	22 Jan 2003 22:12:13 -0000	1.45
  +++ time.c	23 Jan 2003 03:26:21 -0000	1.46
  @@ -174,13 +174,13 @@
   {
       SYSTEMTIME st;
       FILETIME ft, localft;
  -    TIME_ZONE_INFORMATION *tz;
   
       AprTimeToFileTime(&ft, input);
   
   #if APR_HAS_UNICODE_FS
       IF_WIN_OS_IS_UNICODE
       {
  +        TIME_ZONE_INFORMATION *tz;
           SYSTEMTIME localst;
           apr_time_t localtime;
   
  @@ -219,6 +219,7 @@
   #if APR_HAS_ANSI_FS
       ELSE_WIN_OS_IS_ANSI
       {
  +        TIME_ZONE_INFORMATION tz;
   	/* XXX: This code is simply *wrong*.  The time converted will always
            * map to the *now current* status of daylight savings time.
            */
  @@ -234,15 +235,15 @@
                   /* Bias = UTC - local time in minutes
                    * tm_gmtoff is seconds east of UTC
                    */
  -                result->tm_gmtoff = tz->Bias * -60;
  +                result->tm_gmtoff = tz.Bias * -60;
                   break;
               case TIME_ZONE_ID_STANDARD:
                   result->tm_isdst = 0;
  -                result->tm_gmtoff = (tz->Bias + tz->StandardBias) * -60;
  +                result->tm_gmtoff = (tz.Bias + tz.StandardBias) * -60;
                   break;
               case TIME_ZONE_ID_DAYLIGHT:
                   result->tm_isdst = 1;
  -                result->tm_gmtoff = (tz->Bias + tz->DaylightBias) * -60;
  +                result->tm_gmtoff = (tz.Bias + tz.DaylightBias) * -60;
                   break;
               default:
                   /* noop */;
  
  
  

Mime
View raw message