Menu

#42 Wrong date displayed with headlines

open
nobody
None
5
2003-06-18
2003-06-18
Anonymous
No

In builds 567 and 610, the date displayed next to the
headlines is off by one day- today is the June 18th but
the date displayed is 17.06 instead.

My time zone is U.S. Central, and I suspect it has to do
with GMT conversions.

-Cooper Vertz
sourceforge@cooper8.com

Discussion

  • Nobody/Anonymous

    Logged In: NO

    I'm having a similar problem: FeedReader often considers old
    headlines in the RSS as new information, and prepends them
    to my feed display as new articles.

    I found some code in FeedRetrieval.pas that may be relevant.
    The sample date from the RSS 2.0 Specification
    (http://blogs.law.harvard.edu/tech/rss) would be ignored by
    this code:
    ---
    if length(TmpHeadlines[i].date) <> 25 then
    begin
    DecodeDate(SysUtils.Date, yy, m, d);
    decodetime(sysutils.Time, hour, min, sek, msek);
    Misc.gHeadlines[length(Misc.gHeadlines) -
    1].date := inttostr(yy) + '-' + format('%2d', [m]) + '-' +
    format('%2d', [d]) + 'T' + format('%2d', [hour]) + ':' +
    format('%2d', [min]) + ':' + format('%2d', [sek]);
    if (GetHourfromGMT * -1) >= 0 then
    Misc.gHeadlines[length(Misc.gHeadlines) -
    1].date := Misc.gHeadlines[length(Misc.gHeadlines) - 1].date
    + '+' + format('%2d', [GetHourfromGMT * -1]) + ':00'
    else
    Misc.gHeadlines[length(Misc.gHeadlines) -
    1].date := Misc.gHeadlines[length(Misc.gHeadlines) - 1].date
    + format('%2d', [GetHourfromGMT * -1]) + ':00';

    end
    else
    Misc.gHeadlines[length(Misc.gHeadlines) -
    1].date := TmpHeadlines[i].date;
    end;
    ---

    Perhaps someone with a modern Pascal compiler can implement
    a test a fix?

     
  • Matthew Roberts

    Matthew Roberts - 2004-02-09

    Logged In: YES
    user_id=824850

    Anyone know why dates arn't always displayed properly if it
    uses the <pubdate> tag?

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.