apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject svn commit: r543340 - /apr/apr/trunk/time/win32/time.c
Date Fri, 01 Jun 2007 00:27:10 GMT
Author: wrowe
Date: Thu May 31 17:27:09 2007
New Revision: 543340

URL: http://svn.apache.org/viewvc?view=rev&rev=543340
Log:
SystemTimeToTzSpecificLocalTime is not implemented on Windows CE and is used in
the conversion of an APR time to an expanded local time.  The APR code did have
fallback code for Win9x which did not call this function.  The fallback code had
the deficiency of using the current offset for daylight savings time, not the
offset at the specified time.

PR: 39856
Submitted by: Curt Arnold <carnold apache.org>
Reviewed by: Davi Arnaut

Modified:
    apr/apr/trunk/time/win32/time.c

Modified: apr/apr/trunk/time/win32/time.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/time/win32/time.c?view=diff&rev=543340&r1=543339&r2=543340
==============================================================================
--- apr/apr/trunk/time/win32/time.c (original)
+++ apr/apr/trunk/time/win32/time.c Thu May 31 17:27:09 2007
@@ -139,7 +139,7 @@
 
     AprTimeToFileTime(&ft, input);
 
-#if APR_HAS_UNICODE_FS
+#if APR_HAS_UNICODE_FS && !defined(_WIN32_WCE)
     IF_WIN_OS_IS_UNICODE
     {
         TIME_ZONE_INFORMATION *tz;
@@ -178,7 +178,7 @@
                          - (-(tz->Bias + tz->StandardBias) / 60);
     }
 #endif
-#if APR_HAS_ANSI_FS
+#if APR_HAS_ANSI_FS || defined(_WIN32_WCE)
     ELSE_WIN_OS_IS_ANSI
     {
         TIME_ZONE_INFORMATION tz;



Mime
View raw message