Gnus development mailing list
 help / color / mirror / Atom feed
From: "Zhao\, Gang" <gamerh2o@gmail.com>
To: Katsumi Yamaoka <yamaoka@jpl.org>
Cc: ding@gnus.org
Subject: Re: time format on message citation line
Date: Wed, 16 Apr 2014 17:28:47 +0800	[thread overview]
Message-ID: <8738hd62sw.fsf@gmail.com> (raw)
In-Reply-To: <b4mha5u9ng2.fsf@jpl.org> (Katsumi Yamaoka's message of "Wed, 16 Apr 2014 08:34:37 +0900")

On Wed, 2014-04-16 at 08:34:37 +0900, Katsumi Yamaoka wrote:
> On Thu, 03 Apr 2014 19:25:15 +0800, Zhao, Gang wrote:
>> On Thu, 2014-04-03 at 14:18:17 +0900, Katsumi Yamaoka wrote:
>>> A hack is below.  Since manipulating timezone is not so easy,
>>> probably we will have to do it in a similar way if we add this
>>> feature to the Gnus code.
>
>> This really works, as showed in above citation line :) Thanks for your help.
>
> I've implemented the `gmm-format-time-string' function and
> modified the `message-insert-formatted-citation-line' function[1]
> so as to express a date string in the original author's time
> zone.  So, there is no longer a normal way to use the local time
> zone.  But who does want it to do so?  Ok, here is a recipe:
>
> (defadvice message-insert-formatted-citation-line
>     (before use-local-time-zone (&optional from date tz) activate)
>   "Use the local time zone."
>   (setq tz (car (current-time-zone))))
>
It's good to know it will be the default to show the original author's
time zone. I think that's the more reasonable way.

Thanks again for your efforts on this problem.

> [1] `message-insert-formatted-citation-line' is one of predefined
>  functions used to generate a citation line, `... wrote:', in
>  a reply message like the one in this article.
>  To use it, customize the `message-citation-line-function'
>  variable and also the `message-citation-line-format' variable.



      reply	other threads:[~2014-04-16  9:28 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-02  4:00 Zhao, Gang
2014-04-03  5:18 ` Katsumi Yamaoka
2014-04-03 11:25   ` Zhao, Gang
2014-04-10 11:06     ` format-time-string (was Re: time format on message citation line) Katsumi Yamaoka
2014-04-10 16:50       ` Andreas Schwab
2014-04-10 17:57         ` Eric S Fraga
2014-04-10 23:34           ` Katsumi Yamaoka
2014-04-11  8:14             ` Eric S Fraga
2014-04-11  9:31               ` Katsumi Yamaoka
2014-04-11 13:21                 ` Eric S Fraga
2014-04-19 21:22       ` Adam Sjøgren
2014-04-20 23:19         ` Katsumi Yamaoka
2014-04-15 23:34     ` time format on message citation line Katsumi Yamaoka
2014-04-16  9:28       ` Zhao, Gang [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8738hd62sw.fsf@gmail.com \
    --to=gamerh2o@gmail.com \
    --cc=ding@gnus.org \
    --cc=yamaoka@jpl.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).