Wrong date displayed with headlines
Brought to you by:
toomastoots
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
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?
Logged In: YES
user_id=824850
Anyone know why dates arn't always displayed properly if it
uses the <pubdate> tag?