[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nmh-workers] date math -- format help???
From: |
David Levine |
Subject: |
Re: [Nmh-workers] date math -- format help??? |
Date: |
Wed, 17 Dec 2014 09:53:07 -0500 |
Bob wrote:
> By the way, there seems to be a formatting bug with "zone"
> when specifying wide fields with "leading" zeros. For example,
> if you specify the Date: field this way
>
> Date:formatfield="%<(nodate{text})%{text}%|%(pretty{text})%(void(szone{t
> ext}))%<(eq
> 1) %(date2local{text})%08(zone{text})%>%>"
>
> You get
>
> Tue, 16 Dec 2014 23:24:30 -0500 0000-480
>
> I'm guessing negative integers were not expected by the
> padding function? And perhaps it was also fixed with 1.6
> (or afterward)?
It hasn't been fixed. 1.6 does provide fmttest -trace, which helps
isolate the problem. The number formatting function pads after
inserting the - sign, ooops. I'll fix it tonight.
David