Fix bug #3263 ‘Wrong timezone while using date_fmt function’
authorRicardo Mones <ricardo@mones.org>
Sun, 4 Oct 2015 22:19:30 +0000 (00:19 +0200)
committerRicardo Mones <ricardo@mones.org>
Mon, 5 Oct 2015 09:47:11 +0000 (11:47 +0200)
commite98adf35bc6efaf304863700f420a47e173831dc
treef0881d70cd462d067773fdb9136256f8b7583bf5
parent904dc0783c35e3438b3e7f4252302a98923e9cb8
Fix bug #3263 ‘Wrong timezone while using date_fmt function’

In addition of %z for timezone offset, the strftime allows also a %Z
specifier for timezone name and also some modifiers and field width.

All these specifier are detected now and ignored, appending the timezone
on the message. Otherwise they would be passed to the strftime call as
is, which uses the local timezone, wrong most of the time.
src/quote_fmt_parse.y