Debian Bug report logs - #612274
www.debian.org: RSS feed for News contains same timestamp for multiple entries posted on the same day

Package: www.debian.org; Maintainer for www.debian.org is Debian WWW Team <debian-www@lists.debian.org>;

Reported by: Raphaël Hertzog <hertzog@debian.org>

Date: Mon, 7 Feb 2011 10:48:02 UTC

Severity: normal

Tags: confirmed

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian WWW Team <debian-www@lists.debian.org>:
Bug#612274; Package www.debian.org. (Mon, 07 Feb 2011 10:48:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to Raphaël Hertzog <hertzog@debian.org>:
New Bug report received and forwarded. Copy sent to Debian WWW Team <debian-www@lists.debian.org>. (Mon, 07 Feb 2011 10:48:05 GMT) Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Raphaël Hertzog <hertzog@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: www.debian.org: RSS feed for News contains same timestamp for multiple entries posted on the same day
Date: Mon, 07 Feb 2011 11:44:25 +0100
Package: www.debian.org
Severity: normal

The RSS feed at http://www.debian.org/News/news contains the same
timestamp for 2 news posted the same day.

This is somewhat annoying for tools like feed2omb which rely on the
timestamp of the last article they forwarded to decide whether something
needs to be forwarded or not. They will forward the first one and then
consider the second one to not be newer (this is because I don't allow
feed2omb to post 2 articles in the same run).

It would thus be nice to use different timestamps. Just increment the
timestamp arbitrarily in this situation.

Cheers,

-- System Information:
Debian Release: 6.0
  APT prefers oldstable
  APT policy: (500, 'oldstable'), (500, 'unstable'), (500, 'stable'), (150, 'experimental')
Architecture: i386 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash




Added tag(s) confirmed. Request was from Martin Zobel-Helas <zobel@debian.org> to control@bugs.debian.org. (Sun, 13 Feb 2011 16:03:10 GMT) Full text and rfc822 format available.

Information forwarded to debian-bugs-dist@lists.debian.org, Debian WWW Team <debian-www@lists.debian.org>:
Bug#612274; Package www.debian.org. (Wed, 02 Mar 2011 10:09:10 GMT) Full text and rfc822 format available.

Acknowledgement sent to mxondebian@free.fr:
Extra info received and forwarded to list. Copy sent to Debian WWW Team <debian-www@lists.debian.org>. (Wed, 02 Mar 2011 10:09:10 GMT) Full text and rfc822 format available.

Message #12 received at 612274@bugs.debian.org (full text, mbox):

From: Geoff <mxondebian@free.fr>
To: 612274@bugs.debian.org
Subject: www.debian.org: RSS feed contains low resolution timestamp in News and Security feed as well
Date: Wed, 02 Mar 2011 11:06:12 +0100
Hi,

RSS feeds available at http://www.debian.org/ (news and security) do not
provide sufficiently accurate time resolution.

Entries timestamp is something like 2011-02-23.

In addition to Raphaël report, it makes it more difficult to monitor and
spot new post with scripts checking feeds more than once a day.

I suggest to enhance resolution in timestamp to provide at least HH:MM
for entries.

Cheers,
Geoff




Information forwarded to debian-bugs-dist@lists.debian.org, Debian WWW Team <debian-www@lists.debian.org>:
Bug#612274; Package www.debian.org. (Fri, 04 Oct 2013 12:39:09 GMT) Full text and rfc822 format available.

Acknowledgement sent to larjona99@gmail.com:
Extra info received and forwarded to list. Copy sent to Debian WWW Team <debian-www@lists.debian.org>. (Fri, 04 Oct 2013 12:39:09 GMT) Full text and rfc822 format available.

Message #17 received at 612274@bugs.debian.org (full text, mbox):

From: Laura Arjona <larjona99@gmail.com>
To: 612274@bugs.debian.org
Subject: RSS feed for News contains same timestamp for multiple entries posted on the same day
Date: Fri, 4 Oct 2013 14:37:08 +0200
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



Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Fri Apr 18 03:41:46 2014; Machine Name: buxtehude.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.