GNU bug report logs -
#28476
26.0.60; Gnus: broken timezone in citation line
Previous Next
Reported by: Mike Kupfer <mkupfer <at> alum.berkeley.edu>
Date: Sun, 17 Sep 2017 05:15:02 UTC
Severity: normal
Found in version 26.0.60
Done: Paul Eggert <eggert <at> cs.ucla.edu>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Thanks for the bug report.
I see two issues here. First, the change in message-citation-line-format's
treatment of %Z was deliberate. The new treatment (unlike the old one) is
consistent with format-time-string and this consistency simplifies the
documentation and code. If backward-compatibility is a significant hassle we can
re-complicate Emacs, but I'm hoping that users can change %Z to %z in their
settings and move on. In the meantime I installed the first attached patch into
the emacs-26 branch so that the documentation matches the new behavior. (Sorry,
I missed that part of the documentation before.)
Second, (format-time-string "%Z" nil -25200) returns "+07" where it should
return "-07" since -25200 denotes 7 hours west of UTC. This is due to a blunder
in my commit fdb1ba144ca61185e6457f092f38f59dd9bbe6a0 dated 2016-04-12 09:19:11
-0700: the %Z code gets the sign wrong on purely-numeric time zones west of
Greenwich. To fix this bug I installed the second attached patch into the
emacs-26 branch. This fix should cause your example to come out as:
On 16 September 2017 17:18 -07, Mike Kupfer wrote:
which at least gets the sign right.
[0001-message-citation-line-format-Z-is-now-tz-name.patch (text/x-patch, attachment)]
[0002-Fix-format-time-string-Z-bug-with-negative-tz.patch (text/x-patch, attachment)]
This bug report was last modified 7 years and 245 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.