summaryrefslogtreecommitdiff
path: root/time/win32
diff options
context:
space:
mode:
authorWilliam A. Rowe Jr <wrowe@apache.org>2003-01-23 03:26:21 +0000
committerWilliam A. Rowe Jr <wrowe@apache.org>2003-01-23 03:26:21 +0000
commit4cfb8da526a3d524faeaa5ad9656664ffaca9949 (patch)
tree32c3617e05c9c272c55aa56b976dd3bc15575dc5 /time/win32
parentc41ef445a6be5bde4b1826cef76ad4cb5c20dfe4 (diff)
downloadapr-4cfb8da526a3d524faeaa5ad9656664ffaca9949.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: https://svn.apache.org/repos/asf/apr/apr/trunk@64310 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'time/win32')
-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 */;