summaryrefslogtreecommitdiff
path: root/time
diff options
context:
space:
mode:
authorwrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68>2003-01-23 03:26:21 +0000
committerwrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68>2003-01-23 03:26:21 +0000
commit3bd9f0df49d1566ae613eea73654f6f611da777f (patch)
tree32c3617e05c9c272c55aa56b976dd3bc15575dc5 /time
parent900382f5a864300af7190e7ad220bc495e15178e (diff)
downloadlibapr-3bd9f0df49d1566ae613eea73654f6f611da777f.tar.gz
After further evaluation, we will have to create our own implementation
of SystemTimeToTzSpecificLocalTime() for Win9x. Get the code building cleanly until that happens. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64310 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'time')
-rw-r--r--time/win32/time.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/time/win32/time.c b/time/win32/time.c
index 178b2a48f..b5beb4c71 100644
--- a/time/win32/time.c
+++ b/time/win32/time.c
@@ -174,13 +174,13 @@ APR_DECLARE(apr_status_t) apr_time_exp_lt(apr_time_exp_t *result,
{
SYSTEMTIME st;
FILETIME ft, localft;
- TIME_ZONE_INFORMATION *tz;
AprTimeToFileTime(&ft, input);
#if APR_HAS_UNICODE_FS
IF_WIN_OS_IS_UNICODE
{
+ TIME_ZONE_INFORMATION *tz;
SYSTEMTIME localst;
apr_time_t localtime;
@@ -219,6 +219,7 @@ APR_DECLARE(apr_status_t) apr_time_exp_lt(apr_time_exp_t *result,
#if APR_HAS_ANSI_FS
ELSE_WIN_OS_IS_ANSI
{
+ TIME_ZONE_INFORMATION tz;
/* XXX: This code is simply *wrong*. The time converted will always
* map to the *now current* status of daylight savings time.
*/
@@ -234,15 +235,15 @@ APR_DECLARE(apr_status_t) apr_time_exp_lt(apr_time_exp_t *result,
/* Bias = UTC - local time in minutes
* tm_gmtoff is seconds east of UTC
*/
- result->tm_gmtoff = tz->Bias * -60;
+ result->tm_gmtoff = tz.Bias * -60;
break;
case TIME_ZONE_ID_STANDARD:
result->tm_isdst = 0;
- result->tm_gmtoff = (tz->Bias + tz->StandardBias) * -60;
+ result->tm_gmtoff = (tz.Bias + tz.StandardBias) * -60;
break;
case TIME_ZONE_ID_DAYLIGHT:
result->tm_isdst = 1;
- result->tm_gmtoff = (tz->Bias + tz->DaylightBias) * -60;
+ result->tm_gmtoff = (tz.Bias + tz.DaylightBias) * -60;
break;
default:
/* noop */;