--- tmp/hts-tvheadend-2.11/src/htsp.c 2010-03-21 21:08:16.000000000 +1100 +++ ./src/htsp.c 2010-05-12 16:33:43.470666012 +1000 @@ -43,6 +43,7 @@ #include #include "settings.h" +#include #include @@ -717,14 +718,14 @@ { htsmsg_t *out; struct timeval tv; - struct timezone tz; - if(gettimeofday(&tv, &tz) == -1) + tzset(); + if(gettimeofday(&tv, NULL) == -1) return htsp_error("Unable to get system time"); out = htsmsg_create_map(); htsmsg_add_s32(out, "time", tv.tv_sec); - htsmsg_add_s32(out, "timezone", tz.tz_minuteswest); + htsmsg_add_s32(out, "timezone", timezone / 60); return out; }