diff options
author | wrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68> | 2003-01-22 19:17:55 +0000 |
---|---|---|
committer | wrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68> | 2003-01-22 19:17:55 +0000 |
commit | 11798eb7594f2c046673780a029c167ae17f3d2e (patch) | |
tree | 83f20046f59af49350418a3c7e7ef15939a76c2a /time | |
parent | 130f350b7d6bf066cfdf1681bb31b675bd64b2d2 (diff) | |
download | libapr-11798eb7594f2c046673780a029c167ae17f3d2e.tar.gz |
Now that the old logic is restored, adjust it to the new variables.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64307 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'time')
-rw-r--r-- | time/win32/time.c | 14 |
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 */; |