Share

XMLTV

Tracker: Bugs

5 tv_split should account for time zone - ID: 1628043
Last Update: Comment added ( rmeden )

I download XML files with a time zone offset, so the times specified in the
file are locally correct, and do not have to be changed by my viewer.
So the program
start="20070108183000 -0600" stop="20070108190000 -0600"
starts at 6:30 PM local time.

However, after using "tv_split --output %j.xml", the program above is in
the file for Jan. 9 (009.xml) even though it is airing (locally) on Jan. 8
(008.xml).

tv_split is apparently internally adding the time zone offset back in, so
the example program above is represented as starting at 20070109003000
(which is on the next day).

I changed the timezone in tv_grab_na_dd.conf to -0000, but this had no
effect on the operation of tv_split; "Timezone is -0600" is still printed
to the console.

If I download listings in UTC, the practical result is the same. The times
in the daily files appear to be all from the same day, but they are all
locally airing 6 hours earlier.

Today's daily file, then, contains all shows from 1800 last night through
1800 tonight: Not exactly a useful daily file.


ayryq ( ayryq ) - 2007-01-04 17:36

5

Closed

None

Robert Eden

tv_split

None

Public


Comments ( 2 )




Date: 2008-12-09 05:02
Sender: rmedenProject Admin

this was determined to be a Date::Manip bug... and was reported to them.


Date: 2007-01-04 21:10
Sender: rmedenProject Admin


"Timezone is -0600" written by the exe wrapper if the TZ enviornment
variable is not set. The only time TZ is used by _na_dd is to default
timezone in --configure mode.

So if you edited tv_grab_na_dd.conf to -0000, the output XML should have
UTC times.

The problem really seems to be that when %j is computed, it seems to
always use UTC. If you specify %d it uses local time %d it works, but %j
does not.

I'll investigate further.


Log in to comment.

Attached File

No Files Currently Attached

Changes ( 4 )

Field Old Value Date By
status_id Open 2008-12-09 05:01 rmeden
close_date - 2008-12-09 05:01 rmeden
category_id None 2008-08-26 06:50 knowledgejunkie
assigned_to nobody 2007-01-04 21:11 rmeden