On 10/06/13 12:20 AM, Jeremy Kerr wrote:
> Hi Linus,
> 
>> No. The date from the email was
>>
>>     Date: Fri, 7 Jun 2013 15:42:54 +1000
>>
>> and we want *that* date.
> 
> Ah, gotchya.
> 
> So, we now use the original date header (if present) in the mbox views:
> 
> $ wget -qO - http://patchwork.ozlabs.org/patch/249598/mbox/ | grep ^Date
> Date: Fri, 7 Jun 2013 15:42:54 +1000
> 
> ... for all your data-mining needs.

Looks like this functionality uses datetime.total_seconds(), which
doesn't exist on python < 2.7. Can this be changed to make it work with
python-2.6, so patchwork can be served on RHEL 6?

> 67181f5c (Jeremy Kerr       2013-06-10 11:37:25 +0800 193)     utc_timestamp 
> = (patch.date -
> 67181f5c (Jeremy Kerr       2013-06-10 11:37:25 +0800 194)             
> datetime.datetime.utcfromtimestamp(0)).total_seconds()


Best,
-- 
Konstantin Ryabitsev
Senior Systems Administrator
Linux Foundation Collab Projects
Montréal, Québec

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Patchwork mailing list
[email protected]
https://lists.ozlabs.org/listinfo/patchwork

Reply via email to