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 Wed, 22 Jan 2003 19:17:55 GMT
wrowe       2003/01/22 11:17:55

  Modified:    time/win32 time.c
  Log:
    Now that the old logic is restored, adjust it to the new variables.
  
  Revision  Changes    Path
  1.43      +7 -7      apr/time/win32/time.c
  
  Index: time.c
  ===================================================================
  RCS file: /home/cvs/apr/time/win32/time.c,v
  retrieving revision 1.42
  retrieving revision 1.43
  diff -u -r1.42 -r1.43
  --- time.c	22 Jan 2003 19:11:02 -0000	1.42
  +++ time.c	22 Jan 2003 19:17:55 -0000	1.43
  @@ -226,24 +226,24 @@
   
           FileTimeToLocalFileTime(&ft, &localft);
           FileTimeToSystemTime(&localft, &st);
  -        SystemTimeToAprExpTime(result, &st, 1);
  +        SystemTimeToAprExpTime(result, &st);
           result->tm_usec = (apr_int32_t) (input % APR_USEC_PER_SEC);
   
           switch (GetTimeZoneInformation(&tz)) {   
               case TIME_ZONE_ID_UNKNOWN:   
  -                xt->tm_isdst = 0;   
  +                result->tm_isdst = 0;   
                   /* Bias = UTC - local time in minutes   
                    * tm_gmtoff is seconds east of UTC   
                    */   
  -                xt->tm_gmtoff = tz.Bias * -60;   
  +                result->tm_gmtoff = tz.Bias * -60;   
                   break;   
               case TIME_ZONE_ID_STANDARD:   
  -                xt->tm_isdst = 0;   
  -                xt->tm_gmtoff = (tz.Bias + tz.StandardBias) * -60;   
  +                result->tm_isdst = 0;   
  +                result->tm_gmtoff = (tz.Bias + tz.StandardBias) * -60;   
                   break;   
               case TIME_ZONE_ID_DAYLIGHT:   
  -                xt->tm_isdst = 1;   
  -                xt->tm_gmtoff = (tz.Bias + tz.DaylightBias) * -60;   
  +                result->tm_isdst = 1;   
  +                result->tm_gmtoff = (tz.Bias + tz.DaylightBias) * -60;   
                   break;   
               default:   
                   /* noop */;
  
  
  

Mime
View raw message