[Mailman-Users] {Disarmed} Re: Archive page not showing dates properly

Mark Sapiro mark at msapiro.net
Sun Aug 30 00:09:47 CEST 2015

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 is required"
> this implies that "article.date" is not a float in my case. maybe it
> needs to be converted to a float explicitly?
> any other suggestions? 

No. Converting it to float is the appropriate thing. e.g.

>    'date': time.strftime("%d %b %Y %H:%M:%S",

The issue is that while article.date is a *nix timestamp, it is a string
rather than an int or float.

Mark Sapiro <mark at msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan

More information about the Mailman-Users mailing list