diff options
author | wrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68> | 2007-06-01 00:28:32 +0000 |
---|---|---|
committer | wrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68> | 2007-06-01 00:28:32 +0000 |
commit | b2494f067148007c1bf4352aa39a2ffc2912be50 (patch) | |
tree | 9ceb905be71df490dd766a114e844b0ea5c542aa | |
parent | 3df4b2632e66849eecf2b690aad9fb45e05e8f63 (diff) | |
download | libapr-b2494f067148007c1bf4352aa39a2ffc2912be50.tar.gz |
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
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@543342 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | time/win32/time.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/time/win32/time.c b/time/win32/time.c index 4e2420136..8f32de5ca 100644 --- a/time/win32/time.c +++ b/time/win32/time.c @@ -139,7 +139,7 @@ APR_DECLARE(apr_status_t) apr_time_exp_lt(apr_time_exp_t *result, 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 @@ APR_DECLARE(apr_status_t) apr_time_exp_lt(apr_time_exp_t *result, - (-(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; |