robertklep / quotefixformac

QuoteFix for Apple Mail —
https://github.com/robertklep/quotefixformac/releases/latest
191 stars 15 forks source link

strftime bug #76

Closed LwsBtlr closed 7 years ago

LwsBtlr commented 7 years ago

With advanced templating the command ${message.sent.strftime("%H:%M %Z")}` results in 14:54 %-0700 instead of the Time Zone name as specified in man strftime. %z returns "-0700" as expected.

(macOS Sierra 10.12.2)

robertklep commented 7 years ago

Good catch.

I apparently never implemented support for %Z (internally it gets treated as "Z", which in Unicode date format patterns translates to the timezone offset, which is what you're seeing).

Short term solution would be to use zzz instead of %Z, but I'll push a fix shortly as well.

robertklep commented 7 years ago

v2.8.0-alpha.4 should fix this.