logo       

Re: Daylight savings ending not being accounted for in grab_na: msg#00105

Subject: Re: Daylight savings ending not being accounted for in grab_na
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>






<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
boot-loaders.gr...    php.pear.genera...    debugging.valgr...    kde.redhat.user...    text.xml.xsl.ge...    culture.languag...    hardware.microc...    java.servicemix...    redhat.release....    web.zope.plone....    user-groups.lin...    opendarwin.webk...    video.mjpeg.use...    sysutils.bcfg2....    encryption.gpg....    lx-office.devel...    xfree86.forum/2...    mail.mutt.devel...    acpi.devel/2003...    qnx.openqnx.dev...    network.irc.irs...    freebsd.devel.m...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe