On 08/24/2015 11:35 PM, Peter Wetz wrote:
>
> hm, I get this error though:
>
...
> File "/var/lib/mailman/Mailman/Archiver/HyperArch.py", line 1072, in
> write_index_entry
> 'date': time.strftime("%d %b %Y %H:%M:%S", time.localtime(article.date)),
> TypeError: a float is required
>
> "a float i
>
> > okay, sorry for the spam, but I already wrapped my head around how to
> > change the date format.
> >
> > just use python's functionality to parse it into a different string.
> > for instance: 'date': datetime.datetime.strptime(article.datestr, "%a,
> > %d %b %Y %H:%M:%S %z").strftime("%d %b
On 08/24/2015 08:06 AM, Peter Wetz wrote:
>> presumably, some Mailman upgrade removed the modification to HyperArch.py.
>
> Is there some sort of best practice on how to avoid this situation? That
> is, how to avoid modification of HyperArch.py through some Mailman upgrade?
A few things survive
On 08/24/2015 07:34 AM, Peter Wetz wrote:
> okay, sorry for the spam, but I already wrapped my head around how to
> change the date format.
>
> just use python's functionality to parse it into a different string.
> for instance: 'date': datetime.datetime.strptime(article.datestr, "%a,
> %d %b %Y %