GNU bug report logs -
#12514
24.2; message-make-date returns a localized date after X restart
Previous Next
Reported by: Marco Pessotto <melmothx <at> gmail.com>
Date: Tue, 25 Sep 2012 14:11:02 UTC
Severity: normal
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #8 received at 12514 <at> debbugs.gnu.org (full text, mbox):
Marco Pessotto <melmothx <at> gmail.com> writes:
> Sorry for the cross-post to bugs <at> gnus.org, but I suspect the bug is more
> related to Emacs than to Gnus, as it seems to be at C level. Or
> maybe this is related to some libraries shipped by Debian.
>
> The bug is present at least since emacs 23.2.
>
> start emacs with emacs --daemon
>
> start gnus to load message.el
>
> (message-make-date)
>
> => "Tue, 25 Sep 2012 15:43:59 +0200"
>
> ; kill X
>
> (message-make-date)
>
> => "mar, 25 set 2012 15:44:31 +0200"
>
> ; message-make-date is a two lines function:
>
> (let ((system-time-locale "C"))
> (format-time-string "%a, %d %b %Y %T %z"))
>
> => "Tue, 25 Sep 2012 15:45:13 +0200"
This is the definition of `message-make-date', so this seems rather odd:
(defun message-make-date (&optional now)
"Make a valid data header.
If NOW, use that time instead."
(let ((system-time-locale "C"))
(format-time-string "%a, %d %b %Y %T %z" now)))
Are you picking up a very old version of message.el from somewhere,
perhaps? Or are you redefining `message-make-date'?
--
(domestic pets only, the antidote for overdose, milk.)
http://lars.ingebrigtsen.no * Lars Magne Ingebrigtsen
This bug report was last modified 5 years and 338 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.