You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by wr...@apache.org on 2007/06/01 02:28:28 UTC

svn commit: r543341 - /apr/apr/branches/1.2.x/time/win32/time.c

Author: wrowe
Date: Thu May 31 17:28:28 2007
New Revision: 543341

URL: http://svn.apache.org/viewvc?view=rev&rev=543341
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
Backport: 543340

Modified:
    apr/apr/branches/1.2.x/time/win32/time.c

Modified: apr/apr/branches/1.2.x/time/win32/time.c
URL: http://svn.apache.org/viewvc/apr/apr/branches/1.2.x/time/win32/time.c?view=diff&rev=543341&r1=543340&r2=543341
==============================================================================
--- apr/apr/branches/1.2.x/time/win32/time.c (original)
+++ apr/apr/branches/1.2.x/time/win32/time.c Thu May 31 17:28:28 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;