[Koha-devel] Dates in Koha's RSS
MJ Ray
mjr at dsl.pipex.com
Mon Aug 9 14:21:07 CEST 2004
On 2004-08-09 20:40:03 +0100 Owen Leonard
<oleonard at athenscounty.lib.oh.us> wrote:
> "line 13, column 40: lastBuildDate must be an RFC-822 date
There is no lastBuildDate in RSS 1.0, which I think is still the last
working group version (as opposed to Winer's fork 2.0, but please let
me know if not). What validator are you using and is rsskoha producing
something other than 1.0?
> sub getDate {
> my $date = localtime(timelocal(localtime));
> return $date;
> }
>
> ...which is where I assume the date formatting should take place, but
> it's
> beyond me. I assume it's not that difficult for those who know Perl.
> Can
> someone offer a suggestion?
Try the strftime function in the POSIX module on the whole
localtime(...) thing. "perldoc POSIX" for help.
--
MJR/slef My Opinion Only and not of any group I know
http://www.ttllp.co.uk/ for creative copyleft computing
Please email about: BT alternative for line rental+DSL;
Education on SMEs+EU FP6; office filing that works fast
More information about the Koha-devel
mailing list