Timezones in TVServer’s WebEPG (1 Viewer)

bounguine

Portal Pro
November 7, 2005
233
15
52
St.Petersburg
Home Country
Russian Federation Russian Federation
Recently I tried to map channels to different country-grabbers using the WebEPG plugin.
But as a result I have wrong time in EPG (my timezone is GMT+3, the time is shown “as is” – GMT, GMT+1, etc.).
So which is the best way to put the timezone compensation in TVServer for many grabbers?
 

bounguine

Portal Pro
November 7, 2005
233
15
52
St.Petersburg
Home Country
Russian Federation Russian Federation
The only way out that I've found is to open almost each grabber and to change e.g. for Spain (GMT+1):
timezone=""
to
timezone="W. Europe Standard Time"

Too bad work
 

arion_p

Retired Team Member
  • Premium Supporter
  • February 7, 2007
    3,367
    1,642
    Athens
    Home Country
    Greece Greece
    WebEPG takes into account the timezone of the grabber and your local timezone. If the grabber does not have a timezone it is assumed to have your local timezone (can't do anything better than that). Unfortunately timezone handling was not available from the start and as a result many grabbers do not have a timezone set.
     

    bounguine

    Portal Pro
    November 7, 2005
    233
    15
    52
    St.Petersburg
    Home Country
    Russian Federation Russian Federation
    Isn't it better to correct all the grabbers and put timezones on the server (in the installer) and let people download them with the next release?
    Not everyone is aware of the "empty timezone" issue.
     

    arion_p

    Retired Team Member
  • Premium Supporter
  • February 7, 2007
    3,367
    1,642
    Athens
    Home Country
    Greece Greece
    That is true, but don't forget most grabbers are the result of community effort. Fixing all those grabbers is not a task that the team can handle, both because of the volume and because of not having knowledge of the particulars of each grabber (not all grabbers of each country have the same timezone)
     

    arion_p

    Retired Team Member
  • Premium Supporter
  • February 7, 2007
    3,367
    1,642
    Athens
    Home Country
    Greece Greece
    Your problem is unrelated. This one is about some WebEPG grabbers not having been updated to include timzone information. You are not using WebEPG. You are using XmlTVImport to import an improperly constructed tvguide.xml that you download from a site "as is". In short: garbage in, garbage out.

    So please don't try to mix unrelated threads.
     

    frenzy

    Portal Pro
    April 29, 2008
    228
    10
    Home Country
    France France
    Isn't it better to correct all the grabbers and put timezones on the server (in the installer) and let people download them with the next release?
    Not everyone is aware of the "empty timezone" issue.
    That is true, but don't forget most grabbers are the result of community effort. Fixing all those grabbers is not a task that the team can handle, both because of the volume and because of not having knowledge of the particulars of each grabber (not all grabbers of each country have the same timezone)

    There shouldn't be a "fix" on the grabbers, as the users may as well live in different time-zones. For example I live in Greece and use xmlTV for french channels and a grabber for the greek channels. In order to get the programs synchronized I had to change the grabber so that it uses a different time-zone than the one I live in. Other users (especially European) may only watch channels from a different country than they live in, thus needing to adjust the grabber time-zone accordingly. There is no "fix" unless there is a central control in MP in which you state your time-zone and all the data from grabbers, xml and dvb EPGs are automatically adjusted accordingly.
     

    arion_p

    Retired Team Member
  • Premium Supporter
  • February 7, 2007
    3,367
    1,642
    Athens
    Home Country
    Greece Greece
    frenzy:
    XmlTvImporter and WebEPG are two separate plugins now in tvserver and can be used independently (i.e. WebEPG does not need xmltv)

    For xmltv the importer uses the timezone you specify in your configuration and the timezones provided along with the start and end times in tvguide.xml to compute the correct start and end times for your timezone. If timezones in tvguide.xml are correct, the same file can be used by anyone, anywhere in the world and times will be adjusted accordingly.

    For WebEPG the same is true as long as the grabbers used specify the timezone that grabbed data are based on. For example suppose you use a grabber from gr/www_in_gr which specifies a timezone of GTB Standard Time (+2 normally, +3 for daylight saving). If you live in the UK using a timezone of +0, all times will be adjusted to your timezone (2 or 3 hours will be added automatically). The only time that this does not work is when the grabber does not specify any timezone, so WebEPG has no other option but to assume the grabber's timezone is the local one.
    So if all grabbers are fixed to specify the correct timezone, they can be used anywhere in the world.
     

    Users who are viewing this thread

    Top Bottom