iptv-org / epg

Utilities for downloading the EPG (Electronic Program Guide) for thousands of TV channels from hundreds of sources.
https://iptv-org.github.io/
The Unlicense
1.83k stars 203 forks source link

Wrong timezone in United Kingdom EPG #46

Closed ghost closed 3 years ago

ghost commented 3 years ago

For example, from today's EPG:

<programme start="20210822134000 +0000" stop="20210822155000 +0000" channel="ITV.uk"><title lang="en">Goldfinger</title></programme>

This programme actually started at 13:40 +0100, not 13:40 +0000.

SmokeyBR commented 3 years ago

i think all channels are +0000 its prob meant to be time shifted on whatever app u use to the right timezone, problem is some apps do not have the timezone offset for epg xml i myself encounter this problem. correct me if im wrong.

freearhey commented 3 years ago

In this situation, the time was indeed stored incorrectly.

SmokeyBR commented 3 years ago

could you take a look on the brazilian epg it seems to be off 3 hours (utc -3) also it seems to be it using same sources as some latin americas channels like argentina and chile which im sure are not same timezone

SmokeyBR commented 3 years ago

ive tried the lastest changes and it is still giving me wrong times my understanding is very limited what i did that started giving me correct results was changing this line https://mi.tv/${country}/async/channel/${id}/${date.format('YYYY-MM-DD')}/180 to https://mi.tv/${country}/async/channel/${id}/${date.format('YYYY-MM-DD')}/-180

also

ontvtonight.com.config.js returns "Error: date.tz is not a function"