Re: display local time inside email

Michael Kjörling <[email protected]>
Newsgroups gmane.mail.mutt.user
Message-ID <[email protected]>
On 22 Sep 2024 10:20 -0500, from [email protected] (Ranjan Maitra via Mutt-users):
> On Fri Sep20'24 08:42:12PM, (suppressed) wrote:

> As you can see, both these times are in UTC, but the first time does
> not even mention that.
> 
> Anyway, what controls the display of this time? Where do I set it to
> local time (and specify the time zone)?

I'm not 100% sure of the latter, but for the former, $attribution is
what you are most likely looking for.

See http://mutt.org/doc/manual/#attribution and http://mutt.org/doc/manual/#date-format

As an example, mine is:

set attribution="On %{!%-e %b %Y %R %z}, from %a (%n):"

The %{} stanza expands to the date and time of the message I'm
replying to, and is passed to strftime(3) as also described under
$date_format. In turn, %z is the time zone specifier; in your case,
"-0500".

Hope this helps.

-- 
Michael Kjörling                     🔗 https://michael.kjorling.se
“Remember when, on the Internet, nobody cared that you were a dog?”
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.