Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Emanuel Berg <moasen@zoho.com>
To: info-gnus-english@gnu.org
Subject: Re: How to set the default timezone for messages being sent?
Date: Mon, 08 Jan 2018 02:10:48 +0100	[thread overview]
Message-ID: <86zi5prw87.fsf@zoho.com> (raw)
In-Reply-To: <ygm1sj1p4f8.fsf@gkayaalp.com>

Kayaalp wrote:

> You can change the TZ variable in Emacs like:
>
>   (setenv "TZ" "Europe/London")
>
> it works for me. I guess you can make
> a function like this (example in pseudo-code)

Better to do this in the shell's environment
file, e.g. ~/.zshenv for zsh:

    export TZ='Europe/Stockholm'

You can pass this to a tool without setting it
system-wide like this, for example if your wife
has run off with you lawer and now lives in LA:

la-time () {
    TZ="America/Los_Angeles" date
}

-- 
underground experts united
http://user.it.uu.se/~embe8573



  reply	other threads:[~2018-01-08  1:10 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-05 22:52 Bahodir Mansurov
2018-01-06 16:39 ` Eric Abrahamsen
2018-01-07 23:55   ` Bob Newell
2018-01-08  0:42 ` Göktuğ Kayaalp
2018-01-08  1:10   ` Emanuel Berg [this message]
2018-01-08  5:22     ` Göktuğ Kayaalp

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=86zi5prw87.fsf@zoho.com \
    --to=moasen@zoho.com \
    --cc=info-gnus-english@gnu.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).