[mythtv] [PATCH] implemented time offset for mythfilldatabase
Mon, 18 Nov 2002 18:43:40 +0100
Am Montag, 18. November 2002 18:36 schrieb Isaac Richards:
> On Monday 18 November 2002 09:14 am, Christian Hoenig wrote:
> > since I try to add nxtvepg(.sf.net) as a source for the xmltv-data I
> > needed to make mythfilldatabase aware of timeoffsets in the data (given
> > as <programm start="20021118150800 +0100" ...>). Therefore i programmed a
> > patch for programms/mythfilldatabase/filldata.cpp.
> > You only need to add a settingskey "str TIMEoffset=+0100" with your local
> > offset (in hours). If you don't set this key, everything should work as
> > before.
> > This is, of course, only tested on my system, so could you please verify
> > that this is working?
> Why not have it parse the +0100 out of the timestamp, instead of using a
> setting for that?
The setting in the configfile tells the system, in which timezone YOU are, the
+0100 of the timestamp tells the system, in which timezone the DATA is given.
So to set up the correct times, the difference of that has to be used.
take care, have fun