Index: src/htsp.c =================================================================== --- src/htsp.c (revision 4600) +++ src/htsp.c (working copy) @@ -721,14 +721,13 @@ { htsmsg_t *out; struct timeval tv; - struct timezone tz; - if(gettimeofday(&tv, &tz) == -1) + 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; } Index: src/main.c =================================================================== --- src/main.c (revision 4600) +++ src/main.c (working copy) @@ -28,6 +28,7 @@ #include #include #include +#include #include #include @@ -244,6 +245,9 @@ uint32_t adapter_mask = 0xffffffff; int crash = 0; + // make sure the timezone is set + tzset(); + while((c = getopt(argc, argv, "Aa:fu:g:c:Chdr:j:s")) != -1) { switch(c) { case 'a':