diff options
author | wrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68> | 2003-01-22 22:12:13 +0000 |
---|---|---|
committer | wrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68> | 2003-01-22 22:12:13 +0000 |
commit | 900382f5a864300af7190e7ad220bc495e15178e (patch) | |
tree | c0045ab7d845cf4b255a86f3da80e1c811b260ac /time/win32 | |
parent | e56d87e72b72073777960721bb157eb2b0a11d76 (diff) | |
download | libapr-900382f5a864300af7190e7ad220bc495e15178e.tar.gz |
Don't use the optimized form. If Apache is started in ST and runs until
DST (ok, this is Win9x, don't laugh to hard), then even 'Time Now' will
be in the wrong timezone. (NT code doesn't suffer from this problem,
although changing the -time zone- wouldn't affect the running instance
of Apache, which would remain on the old timezone.)
Solving this might be a puzzle for the parent process to pick up such
system config change notifications, and cycle over to a new child.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64309 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'time/win32')
-rw-r--r-- | time/win32/time.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/time/win32/time.c b/time/win32/time.c index 3121c43aa..178b2a48f 100644 --- a/time/win32/time.c +++ b/time/win32/time.c @@ -228,7 +228,7 @@ APR_DECLARE(apr_status_t) apr_time_exp_lt(apr_time_exp_t *result, SystemTimeToAprExpTime(result, &st); result->tm_usec = (apr_int32_t) (input % APR_USEC_PER_SEC); - switch (get_local_timezone(&tz)) { + switch (GetTimeZoneInformation(&tz)) { case TIME_ZONE_ID_UNKNOWN: result->tm_isdst = 0; /* Bias = UTC - local time in minutes |