okay, my admin forgot to restart the service. the dates are now working again!
one more question: how/where can I format the string? right now it looks like this: "Mon, 24 Aug 2015 14:18:21 +0200" I would like the following: "24 Aug 2015 14:18:21"
Thanks and best, Peter
On Fri, Aug 21, 2015 at 4:59 PM, Mark Sapiro mark@msapiro.net wrote:
On 08/21/2015 02:29 AM, Peter Wetz wrote:
On the archive page of my mailman list the dates are not showing up properly. It looks like this: http://i.imgur.com/IrmWnie.png
As you can see, instead of the date a string "%(date)s" is shown. It is also worth noting, that it already worked properly. However, suddenly (at least I cannot state when exactly) it stopped working and since then dates are shown as seen in the screenshot.
The standard Mailman archidxentry.html template does not have a %(date)s substitution in it. Presumably, your installation/list has a custom version of this template (http://wiki.list.org/x/4030605) which adds the %(date)s substitution and along with this, modifications to Mailman/Archiver/HyperArch.py to add a 'date' entry to the interpolation dictionary for this template, and also presumably, some Mailman upgrade removed the modification to HyperArch.py.
How can I fix this problem?
Replace the current Mailman/Archiver/HyperArch.py with the one that was there when it worked, or in the definition of write_index_entry at about line 1073 where you see
d = { 'filename': urllib.quote(article.filename), 'subject': subject, 'sequence': article.sequence, 'author': author }
change it to
d = { 'filename': urllib.quote(article.filename), 'subject': subject, 'sequence': article.sequence, 'date': article.datestr, 'author': author }
-- Mark Sapiro mark@msapiro.net The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Mailman-Users mailing list Mailman-Users@python.org https://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://wiki.list.org/x/AgA3 Security Policy: http://wiki.list.org/x/QIA9 Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: https://mail.python.org/mailman/options/mailman-users/wetz.peter%40gmail.com