summaryrefslogtreecommitdiff
path: root/time
diff options
context:
space:
mode:
authorWilliam A. Rowe Jr <wrowe@apache.org>2003-01-22 22:12:13 +0000
committerWilliam A. Rowe Jr <wrowe@apache.org>2003-01-22 22:12:13 +0000
commitc41ef445a6be5bde4b1826cef76ad4cb5c20dfe4 (patch)
treec0045ab7d845cf4b255a86f3da80e1c811b260ac /time
parent9f98ec363eeadad61d3bf9c08491db4554095628 (diff)
downloadapr-c41ef445a6be5bde4b1826cef76ad4cb5c20dfe4.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: https://svn.apache.org/repos/asf/apr/apr/trunk@64309 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'time')
-rw-r--r--time/win32/time.c2
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