[issue1799] isodate filter should include seconds

Giorgos Keramidas keramida at ceid.upatras.gr
Mon Aug 17 05:12:13 CDT 2009


On Sun, 16 Aug 2009 17:18:39 +0000, esskov <mercurial-bugs at selenic.com> wrote:
> New submission from esskov <esskov at oncable.dk>:
>
> When using the isodate filter, as in -
>
> hg log --template "{date|isodate}\n"
>
> - only hours and minutes are included, the seconds are omitted, e.g.
>
> 2009-08-12 16:05 +0200
>
> I'm not sure if this is intended (i.e. whether this issue is a bug or a
> feature-request)?  Anyhow, in my application, which knows how to parse ISO
> dates, the truncated accuracy is undesirable.

We already have an 'isodatesec' filter that is identical to 'isodate'
with seconds added as extra:

changeset:   6328:b6ecaf5b4b92
branch:      keramida
user:        Giorgos Keramidas <keramida at ceid.upatras.gr>
date:        Mon Mar 17 19:17:54 2008 +0200
summary:     Add an {isodatesec} template, to show seconds too.



More information about the Mercurial-devel mailing list