From 153998322ba0ae970586658c0f89e6123f891e00 Mon Sep 17 00:00:00 2001 From: Scott Severtson Date: Thu, 13 Dec 2012 18:22:38 +0100 Subject: bugfix: invalid DST handling under Solaris --- runtime/datetime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/datetime.c') diff --git a/runtime/datetime.c b/runtime/datetime.c index 85cbab84..43346945 100644 --- a/runtime/datetime.c +++ b/runtime/datetime.c @@ -78,7 +78,7 @@ timeval2syslogTime(struct timeval *tp, struct syslogTime *t) /* Solaris uses a different method of exporting the time zone. * It is UTC - localtime, which is the opposite sign of mins east of GMT. */ - lBias = -(daylight ? altzone : timezone); + lBias = -(tm->tm_isdst ? altzone : timezone); # elif defined(__hpux) lBias = tz.tz_dsttime ? - tz.tz_minuteswest : 0; # else -- cgit v1.2.3