Menu

#28 Wrong hour format for RFC822 datetimes

open
nobody
None
5
2006-02-05
2006-02-05
Anonymous
No

The DateTag used to format pubdate uses 'kk' as format
for hours; these run from 01 to 24, though. If I post a
blog entry between 00:00 and 00:59, the time is
'24:xx:xx' and I rank first in an aggregator all day ...

I think DateTag.java needs the following change:

< public static final String RFC822_FORMAT = "EEE, dd
MMM yyyy kk:mm:ss z";
> public static final String RFC822_FORMAT = "EEE, dd
MMM yyyy HH:mm:ss z";

Matthias
matthias.ernst@coremedia.com

Discussion


Log in to post a comment.

Monday.com Logo