summaryrefslogtreecommitdiff
path: root/time
diff options
context:
space:
mode:
authorWilliam A. Rowe Jr <wrowe@apache.org>2003-01-22 19:17:55 +0000
committerWilliam A. Rowe Jr <wrowe@apache.org>2003-01-22 19:17:55 +0000
commitec814bbfb291519d1df35573cf5533db4ec71b2f (patch)
tree83f20046f59af49350418a3c7e7ef15939a76c2a /time
parent6976836dfb3783cb809aa19c1b2548bcfe0bbbb5 (diff)
downloadapr-ec814bbfb291519d1df35573cf5533db4ec71b2f.tar.gz
Now that the old logic is restored, adjust it to the new variables.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64307 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'time')
-rw-r--r--time/win32/time.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/time/win32/time.c b/time/win32/time.c
index c2250bf6a..df5d5684d 100644
--- a/time/win32/time.c
+++ b/time/win32/time.c
@@ -226,24 +226,24 @@ APR_DECLARE(apr_status_t) apr_time_exp_lt(apr_time_exp_t *result,
FileTimeToLocalFileTime(&ft, &localft);
FileTimeToSystemTime(&localft, &st);
- SystemTimeToAprExpTime(result, &st, 1);
+ SystemTimeToAprExpTime(result, &st);
result->tm_usec = (apr_int32_t) (input % APR_USEC_PER_SEC);
switch (GetTimeZoneInformation(&tz)) {
case TIME_ZONE_ID_UNKNOWN:
- xt->tm_isdst = 0;
+ result->tm_isdst = 0;
/* Bias = UTC - local time in minutes
* tm_gmtoff is seconds east of UTC
*/
- xt->tm_gmtoff = tz.Bias * -60;
+ result->tm_gmtoff = tz.Bias * -60;
break;
case TIME_ZONE_ID_STANDARD:
- xt->tm_isdst = 0;
- xt->tm_gmtoff = (tz.Bias + tz.StandardBias) * -60;
+ result->tm_isdst = 0;
+ result->tm_gmtoff = (tz.Bias + tz.StandardBias) * -60;
break;
case TIME_ZONE_ID_DAYLIGHT:
- xt->tm_isdst = 1;
- xt->tm_gmtoff = (tz.Bias + tz.DaylightBias) * -60;
+ result->tm_isdst = 1;
+ result->tm_gmtoff = (tz.Bias + tz.DaylightBias) * -60;
break;
default:
/* noop */;