From: Jaroslav Kysela Date: Tue, 16 Feb 2016 07:39:04 +0000 (+0100) Subject: dvb_convert_date - fix tmzone handling (signess), fixes #3567 X-Git-Tag: v4.2.1~1022 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=23274441e692f91a223ebcbf3ba3c9fadbea2eac;p=thirdparty%2Ftvheadend.git dvb_convert_date - fix tmzone handling (signess), fixes #3567 --- diff --git a/src/input/mpegts/dvb_support.c b/src/input/mpegts/dvb_support.c index 81315499b..77afc3f3c 100644 --- a/src/input/mpegts/dvb_support.c +++ b/src/input/mpegts/dvb_support.c @@ -550,7 +550,7 @@ dvb_convert_date(const uint8_t *dvb_buf, int tmzone) return mktime(&dvb_time); /* apply offset */ - return timegm(&dvb_time) + tmzone * 60; + return timegm(&dvb_time) - tmzone * 60; } static time_t _gps_leap_seconds[17] = {