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 22:12:13 GMT
wrowe       2003/01/22 14:12:13

  Modified:    time/win32 time.c
  Log:
    Don't use the optimized form.  If Apache is started in ST and runs until
    DST (ok, this is Win9x, don't laugh to hard), then even 'Time Now' will
    be in the wrong timezone.  (NT code doesn't suffer from this problem,
    although changing the -time zone- wouldn't affect the running instance
    of Apache, which would remain on the old timezone.)
  
    Solving this might be a puzzle for the parent process to pick up such
    system config change notifications, and cycle over to a new child.
  
  Revision  Changes    Path
  1.45      +1 -1      apr/time/win32/time.c
  
  Index: time.c
  ===================================================================
  RCS file: /home/cvs/apr/time/win32/time.c,v
  retrieving revision 1.44
  retrieving revision 1.45
  diff -u -r1.44 -r1.45
  --- time.c	22 Jan 2003 19:39:43 -0000	1.44
  +++ time.c	22 Jan 2003 22:12:13 -0000	1.45
  @@ -228,7 +228,7 @@
           SystemTimeToAprExpTime(result, &st);
           result->tm_usec = (apr_int32_t) (input % APR_USEC_PER_SEC);
   
  -        switch (get_local_timezone(&tz)) {
  +        switch (GetTimeZoneInformation(&tz)) {
               case TIME_ZONE_ID_UNKNOWN:
                   result->tm_isdst = 0;
                   /* Bias = UTC - local time in minutes
  
  
  

Mime
View raw message