You are here

Possible wrong timezone in magentatv.de.ini

14 posts / 0 new
Last post
mistergefahrensucher
Offline
Donator
Joined: 6 years
Last seen: 1 month
Possible wrong timezone in magentatv.de.ini

In the past i useed web.magentatv.de.ini here
in site ini 

**------------------------------------------------------------------------------------------------
site {url=web.magentatv.de|timezone=Europe/Berlin|maxdays=14.1|cultureinfo=de-DE|charset=UTF-8|titlematchfactor=90|ratingsystem=FSK}........

but web.magentatv.de.iniis gone. Now i tried to use magentatv.de.ini

**------------------------------------------------------------------------------------------------
site {url=magentatv.de|timezone=Atlantic/Reykjavik|maxdays=14.1|cultureinfo=de-DE|charset=UTF-8|titlematchfactor=90|keepindexpage|allowlastdayoverflow}.......
s

the result is a messed up guide.xml. Her an example

with web.magentatv.de.ini i got

<programme start="20251027220500 +0200" stop="20251027232000 +0200" channel="ProSieben MAXX">

with magentatv.de.ini i got

<programme start="20251027210500 +0000" stop="20251027222000 +0000" channel="ProSieben MAXX">

Is this right ? because 1 h difference. 
If i import the guide.xml in tvheadend from magentatv.de.ini the time was wrong displayed.

Webgrab and tvheadend is on the same pc with OS timezone Europe/Berlin and in tvheadend epg Import setting is as recomended UTC

When i changed in magentatv.de.ini the timezone to Europe/Berlin i got
<programme start="20251027210500 +0200" stop="20251027222000 +0200" channel="ProSieben MAXX">

So my question is. Do i something wrong ?
Or does magentatv.de always provide the guide in UTC ?

I have not imported the new magentatv.de.ini based guide in tvheadend because i fear to mess up my scheduled recordings.
But if your magentatv.de.ini is right than i will give it a try.

Cheers Rüdiger

 

Blackbear199
Offline
Has donated long time ago
Joined: 10 years
Last seen: 4 months

its not as simple as that.

there is definitely something wrong with the web.magenta.de vs magenta.de data you provided.

as you pointed out if ones is berlin time and the other is utc there should be a 2 hour difference not one.

i dont have the web.magenta.ini anymore just the magenta.de one and i can tell you the data is definitely in UTC.

here's a show from the data webgrab gets..

{"id":"49695996","name":"Eli Roth's History of Horror","introduce":"Von Dämonen besessen zu werden ist ein klassisches Thema des Horror-Genres. Der Exorzist und Rosemaries Baby sind nur einige Beispiele für Filme, die das Publikum in Angst versetzen. Die Sendung schaut sich dieses Thema genauer an.","channelid":"396","starttime":"2025-10-16 23:45:49 UTC+00:00","endtime":"2025-10-17 00:25:55 UTC+00:00","cast":{"producer":"Eli Roth,Steven Michaels,Jonathan Koch,Allison Berkley,Joseph Freed,Kurt Sayenga,Ryann Lauckner,James Macnab","adaptor":"Kurt Sayenga"},"subName":"Besessen von Dämonen","subNum":"4","genres":"Dokumentation,Horror,Reportage","seasonNum":"1","country":"us","producedate":"2018-01-01","ratingForeignsn":"Unbekannt"}

 

Blackbear199
Offline
Has donated long time ago
Joined: 10 years
Last seen: 4 months

also Atlantic/Reykjavik and UTC are the same time.

i could have set the timezone=UTC

the only reason i didnt is webgrab has to include a timezone in the web request for data.

it doesnt like a value like UTC but wants a region/area format.
when you view the epg on the site it uses the timezone of the user(epg is shown in users local time).

with the ini being encrypted and also not wanting users to have to edit the timezone setting as its case sensitive and needs to spelled correctly i set both to Atlantic/Reykjavik.

 

mistergefahrensucher
Offline
Donator
Joined: 6 years
Last seen: 1 month

Here is my old web.magentatv.de.
I had a backup an is now placed in my siteini.user. So autoupdate will noch remove it ;)
My gues is Europe/Berlin has DST and Atlantic/Reykjavik  not.

Maybe it could be better to use a UTC Timezone with WEST DST like
Europe/Lisbon

Atlantic/Madeira

magentatv.de.ini. 
 

Attachments: 
mistergefahrensucher
Offline
Donator
Joined: 6 years
Last seen: 1 month

Maybe it could be better to use a UTC Timezone with WEST DST like
Europe/Lisbon

Atlantic/Madeira

Blackbear199
Offline
Has donated long time ago
Joined: 10 years
Last seen: 4 months

magenta.de will return the epg in whatever timezone the ini creator decides to set it up to do.

i picked UTC(Atlantic/Reykjavik) 

it has to be correct,look at the data returned above,its UTC+0000

 

 

Blackbear199
Offline
Has donated long time ago
Joined: 10 years
Last seen: 4 months

and yes i could have used Europe/Berlin or any other valid timezone.

it makes no difference and the data is just timeshifted.

 

mistergefahrensucher
Offline
Donator
Joined: 6 years
Last seen: 1 month

No it's not crorect there is 1h differerence i think because off DST

Blackbear199
Offline
Has donated long time ago
Joined: 10 years
Last seen: 4 months

using UTC there is no DST adjustment as UTC timezone doesnt observe DST.

look at the screenshots.

as i already said when you view the site the epg is in the users local timezone.

for me thats UTC-0300

so right now..

Die Tierärzte - Retter mit Herz 8:00 - 08:45 my local time(UTC-0300)

guide.xml

  <programme start="20251018110000 +0000" stop="20251018114500 +0000" channel="Das Erste">

    <title lang="de">Die Tierärzte - Retter mit Herz</title>

so do the math..

08:00 my local time + 03:00(my utc offset) = 11:00 UTC+0000(matches guide.xml)

when you view the epg in your app if its not correct for you then something in your setup is not adjusting the epg correctly.

 

 

mistergefahrensucher
Offline
Donator
Joined: 6 years
Last seen: 1 month

This could be but in case of if import the the mangenta.de.ini generated guide.xml and the epg was 1h to late.
And if you see my first post there is also 1h difference.
See my screenshot. 
Left is the mangenta.de.ini generated
Right the web.magentatv.de  generated
for the EPG Importer i used in both cases UTC (as recomended)
so for me mangenta.de.ini is useless. Sorry.

 

Attachments: 
mistergefahrensucher
Offline
Donator
Joined: 6 years
Last seen: 1 month

But 
Europe/Lisbon   has no general timzoneoffset but DST  for example. 
 

Blackbear199
Offline
Has donated long time ago
Joined: 10 years
Last seen: 4 months

web.magenta.de

  <programme start="20251018130000 +0200" stop="20251018134500 +0200" channel="WEB:Das Erste">

    <title lang="de">Die Tierärzte - Retter mit Herz</title>

magenta.de

  <programme start="20251018110000 +0000" stop="20251018114500 +0000" channel="Das Erste">

    <title lang="de">Die Tierärzte - Retter mit Herz</title>

both are the exact same time when you ajdust to any timezone in the world.

11:00 UTC is the same as 13:00 Berlin

 

mistergefahrensucher
Offline
Donator
Joined: 6 years
Last seen: 1 month

Oh jesus,
if found the difference. 
If i compare the time before DST change 26. October the time are ok.
After 26. October i see a 1h difference.
Could be that they do somthing in the webbrowser to provide with the right time after the day the DST change to display the User the right time.
(the Webserver in TVHeadend don't do that)
So when i import the xml 26. October in the morning (and my TVHeadend Server has also done it's DST change before) the time should als be corrected.

Thanks a lot. 

Blackbear199
Offline
Has donated long time ago
Joined: 10 years
Last seen: 4 months

webgrab detects this automatically using the timezonedata.txt file.

it contains the dst date for everytimezone that observes it.
for web.magenta it will adjust the start/stop times after the dst change on the 26th starting at 2am i think.

another benefit of use UTC is no dst correction is needed.

Log in or register to post comments

Brought to you by Jan van Straaten

Program Development - Jan van Straaten ------- Web design - Francis De Paemeleere
Supported by: servercare.nl