You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by pq...@apache.org on 2009/11/27 11:16:36 UTC

svn commit: r884820 - /incubator/trafficserver/traffic/trunk/proxy/logging/LogUtils.cc

Author: pquerna
Date: Fri Nov 27 10:16:36 2009
New Revision: 884820

URL: http://svn.apache.org/viewvc?rev=884820&view=rev
Log:
TS-2: Match FreeBSD behavoir on localtime/tz conversion

Modified:
    incubator/trafficserver/traffic/trunk/proxy/logging/LogUtils.cc

Modified: incubator/trafficserver/traffic/trunk/proxy/logging/LogUtils.cc
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/proxy/logging/LogUtils.cc?rev=884820&r1=884819&r2=884820&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/proxy/logging/LogUtils.cc (original)
+++ incubator/trafficserver/traffic/trunk/proxy/logging/LogUtils.cc Fri Nov 27 10:16:36 2009
@@ -130,7 +130,7 @@
 #endif
     struct tm res;
     struct tm *tms = ink_localtime_r((const time_t *) &timestamp, &res);
-#if (HOST_OS == freebsd)
+#if (HOST_OS == freebsd) || (HOST_OS == darwin)
     long zone = -tms->tm_gmtoff;        // double negative!
 #else
     long zone = (tms->tm_isdst > 0) ? altzone : timezone;