Project

General

Profile

Bug #2449

xmltv.xml Programme start and stop times interpreted as local time without timezone

Added by Adrian Strilchuk about 10 years ago. Updated about 10 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
Category:
EPG - Grabbers
Target version:
-
Start date:
2014-11-02
Due date:
% Done:

100%

Estimated time:
Found in version:
3.9.1987~gc053acd~trusty
Affected Versions:

Description

A minor bug indeed but the start and stop times are interpreted as local time without explicitly specifying a timezone. The xmltv.dtd states that dates and times without a explicit timezone are in UTC.

Browsing through xmltv.c in _xmltv_str2time I think should be changed to:

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

History

#1

Updated by Jaroslav Kysela about 10 years ago

  • Status changed from New to Fixed
  • % Done changed from 0 to 100

Applied in changeset commit:tvheadend|4c1f0fa1b6536cce4dc8abea334dacb0168ff0fa.

Also available in: Atom PDF