Bug#612274: RSS feed for News contains same timestamp for multiple entries posted on the same day
Hi all
I would like to try to help to fix this bug.
For the News feed ( http://www.debian.org/News/news )
I think that the key field is line 1 of the news bulletin template:
http://anonscm.debian.org/viewvc/publicity/dpn/en/index.wml-template
line 1
#use wml::debian::projectnews::header PUBDATE="2013-XX-XX" SUMMARY=""
I suppose that field is changed manually by the publicity team, so
maybe it's enough to ask them to include HH:MM
#use wml::debian::projectnews::header PUBDATE="2013-XX-XX 00:00" SUMMARY=""
(that can stay 00:00 (or any other convention) and only would change
to other time when there's more than one bulletin that day).
The problem is that in the file
http://anonscm.debian.org/viewvc/webwml/webwml/english/template/debian/ctime.wml
There are some functions that handle dates from/for the news, and I'm
not sure if those functions would be broken with a different format in
PUBDATE.
In the case of the DSA feed ( http://www.debian.org/security/dsa ) I
see that in the files:
http://anonscm.debian.org/viewvc/webwml/webwml/english/security/dsa-long.rdf.in
and
http://anonscm.debian.org/viewvc/webwml/webwml/english/security/dsa.rdf.in
the timestamp for the feed is handled by the function rdf_ctime() in this file:
http://anonscm.debian.org/viewvc/webwml/webwml/english/template/debian/ctime.wml
And it appears to handle time, not only date. So I suppose that the
problem is that the entry data (the DSA) has a date in the format
YYYY-MM-DD (or any), not including the time. For example:
http://anonscm.debian.org/viewvc/webwml/webwml/english/security/2013/dsa-2767.data
But I don't know how that file is generated.
Hope it helps
Laura Arjona
Reply to: