Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
xmltv: parser - dates and times without a explicit timezone are in UT…
…C, fixes #2449
  • Loading branch information
perexg committed Nov 10, 2014
1 parent f35f00f commit 4c1f0fa
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/epggrab/module/xmltv.c
Expand Up @@ -80,9 +80,6 @@ static time_t _xmltv_str2time(const char *in)
sscanf(str+sp+1, "%d", &tz);
tz = (tz % 100) + (tz / 100) * 3600; // Convert from HHMM to seconds
str[sp] = 0;
sp = 1;
} else {
sp = 0;
}

/* parse time */
Expand All @@ -96,10 +93,7 @@ static time_t _xmltv_str2time(const char *in)
tm.tm_isdst = -1;

if (r >= 5) {
if(sp)
return timegm(&tm) - tz;
else
return mktime(&tm);
return timegm(&tm) - tz;
} else {
return 0;
}
Expand Down

0 comments on commit 4c1f0fa

Please sign in to comment.