[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Display date in message-pages in ISO format



Dear Mhonarc-Users,

I just wonder, how one can display the date in the message-files in a
ISO-conformant way.

In the index-pages there is no problem, there I have something like

<DayBegin>
<div class="dayGroup">
<strong>$MSGLOCALDATE(CUR;%Y-%m-%d)$</strong>
<ul>
</DayBegin>

in my ressource-file. Perfect, the date is displayed in the ISO-format
YYYY-MM-DD.
But how can I set it, that the date in the "From:"-header on a message
page is also displayed in that format? I tried to set all
ressource-variables which I found to that format, e.g.

<LOCALDATEFMT>
%Y-%m-%d %H:%M:%S
</LOCALDATEFMT>

(and the same with <GMTDATEFMT>, <MSGLOCALDATEFMT> and <MSGGMTDATEFMT>),
but on the message page, the From:-Date is always displayed in that format:
Date: Fri, 4 May 2007 10:39:33 +0200

(And I want: "Date: 2007-05-04 10:39:33" or something simliar...)

How can I change this? First, it is the recommended format by the W3C
(http://www.w3.org/QA/Tips/iso-date) and second - I hope, that this
format will solve the problems with "Namazu" when sorting by date...

Best regards,
Wolfgang

P.S. Thanks to Dave Stragand for the mrc-File for the ATOM 1.0 output.
Works great. If you allow it, I would suggest, that these ressource-file
examples (and the RSS 0.9 example from Jeff Breidenbach) should be
included in the next release of Mhonarc.


[Index of Archives]     [Bugtraq]     [Yosemite News]     [Mhonarc Home]