diff options
author | trawick <trawick@13f79535-47bb-0310-9956-ffa450edef68> | 2002-04-08 15:21:54 +0000 |
---|---|---|
committer | trawick <trawick@13f79535-47bb-0310-9956-ffa450edef68> | 2002-04-08 15:21:54 +0000 |
commit | 766293fd8f8691b690c2cd61cd430b17dc65bf78 (patch) | |
tree | f29342d85715ba1b8aad038e4c49cb5e74c4ea9f /time | |
parent | 6d0229a0e69e888c2c91f209e68e247d4a711871 (diff) | |
download | libapr-766293fd8f8691b690c2cd61cd430b17dc65bf78.tar.gz |
Fix some daylight savings time breakage on (at least) AIX,
Solaris, and HP-UX. It still seems to work fine on Linux
and FreeBSD :)
When we calculated server_gmt_offset at startup, we left it
vague about whether or not the GMT time passed to mktime()
was in d.s.t. mode. Since it is GMT it clearly is not
d.s.t. Apparently libc was trying to be clever and figuring
out whether or not it was d.s.t.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63230 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'time')
-rw-r--r-- | time/unix/time.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/time/unix/time.c b/time/unix/time.c index de74cfd27..8e6e448b2 100644 --- a/time/unix/time.c +++ b/time/unix/time.c @@ -356,7 +356,7 @@ APR_DECLARE(void) apr_unix_setup_time(void) #else t = *gmtime(&t1); #endif - t.tm_isdst = -1; + t.tm_isdst = 0; /* we know this GMT time isn't daylight-savings */ t2 = mktime(&t); server_gmt_offset = (apr_int32_t) difftime(t1, t2); #endif |