[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to set the default timezone for messages being sent?
From: |
Göktuğ Kayaalp |
Subject: |
Re: How to set the default timezone for messages being sent? |
Date: |
Mon, 08 Jan 2018 08:22:26 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
On 2018-01-08 02:10 +01, Emanuel Berg <moasen@zoho.com> wrote:
> 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:
Certainly, but AFAIU the OP wants to modify the timezone temporarily to
have a ‘Date:’ header in a certain timezone, different from his default
one, when sending some particular messages.
> 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
> }
--
İ. Göktuğ Kayaalp <http://www.gkayaalp.com/>
024C 30DD 597D 142B 49AC
40EB 465C D949 B101 2427