On Sun, 27 Oct 2002, Brian J. Murrell wrote:
>>Isn't this a special case of the general problem, which is that
>>times are written out using the local user's timezone and not
>>necessarily that used by the data source?
>
>No. It was writing incorrect times as per the local time of the
>program airing.
Yes but if you change your TZ variable, doesn't the incorrectness go
away or at least change into something different? That is my point:
it looks like a simple using-DST-when-DST-does-not-apply bug but it
might be a manifestation of the more general
use-$TZ-even-when-$TZ-does-not-match-the-site bug.
So try changing $TZ and see if this bug changes in character.
>When the start/stop time of a program is written into the XML file,
>should it be written local to the time of the grabbing or local to
>the time when it will air?
It should be written using the data from the data source, so if the
website says 23:00 DST then write it as 23:00 DST. If the website
says EST then write EST. If you don't know what the website is
intending because it doesn't provide proper timezone information, then
the grabber will have to add timezones intelligently. I'd say it
would be most intelligent to use DST timezones for times when DST is
in effect, and not otherwise.
(For data sources which are obviously broken, the grabber could have
some logic to fix up the times before outputting them, of course.)
--
Ed Avis <ed@xxxxxxxxxxx>
|