Project

General

Profile

Epg wrong time

Added by Sasa Sasa about 8 years ago

I use tv_grab_file to import EPG from XMLTV file. Times are wrong (in XML is ok).

If movie starts in 12:20 (XMLTV) EPG says 13:20.
My time zone is CET (GMT+1) and time is correct.

In Configuration --> Networks --> EIT Time offset I test with differnt values (UTC-3, UTC-2, UTC-1, UTC, UTC+1, UTC+2, UTC+3...) and nothing changed.
In Configuration --> Services I set Character set to ISO-8859-1 and tested with Ignore EPG (EIT) enabled and disabled, nothing changed...

What I can do more to correct this error?

Thank you


Replies (3)

RE: Epg wrong time - Added by Robert Cameron about 8 years ago

XMLTV defines the "start" element as YYYYMMDDHHMMSS [+/-HHMM]. So, timezone offsets are optionally included in the XMLTV file. Since your XMLTV file is UTC, that's what it is using. If you want your XMLTV file to be in local time, then you need to modify it.

RE: Epg wrong time - Added by Sasa Sasa about 8 years ago

Thank you for replay - problem is just opposite - XMLTV time is local, not UTC, time is YYYYMMDDHHMMSS without [+/-HHMM]. Any script to add [+/-HHMM] in xml file?

RE: Epg wrong time - Added by Robert Cameron about 8 years ago

Yes, because without the TZ offset, the time is assumed to be UTC. Therefore, your XMLTV should have something like <programme ... start="YYYYMMDD122000 +0100" ...>

    (1-3/3)