[Users] A bug (?) in template %D{%Z} symbol expansion

Colin Leroy colin at colino.net
Sat Nov 19 13:34:22 CET 2011


On 19 November 2011 at 11h45, pezcurrel wrote:

Hi, 

> Hello,
> 
> if I set a reply template like this...
> 
> On %D{%d/%m/%Y %H:%M (%Z)}...
> 
> ...and reply to a mail with a date of "Fri, 18 Nov 2011 12:15:41
> -0500", while my timezone is +0100, I'll get...
> 
> On 18/11/2011 12:15 (CET)...
> 
> ...in my reply, but that "18/11/2011 12:15" is not "CET".
> 
> This happens with claws-mail 3.7.10 from claws-mail ppa on ubuntu
> 10.04. A template like this...
> 
> On %D{%d/%m/%Y %H:%M (%z)}...
> 
> ...would instead produce...
> 
> On 18/11/2011 12:15 (-0500)...
> 
> ...which is right.

It looks like a strftime() bug. date gives me the same:

colin at marv:~/docs/cvs/claws$ date +'%Z'
CET
colin at marv:~/docs/cvs/claws$ date +'%z'
+0100

-- 
Colin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: not available
URL: <http://lists.claws-mail.org/pipermail/users/attachments/20111119/bb3ffb31/attachment.sig>


More information about the Users mailing list