all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: e step <etelepr@gmail.com>
Cc: 31452@debbugs.gnu.org
Subject: bug#31452: emacs 25.3; timezone handling broken
Date: Mon, 14 May 2018 18:45:49 +0300	[thread overview]
Message-ID: <83d0xykzpu.fsf@gnu.org> (raw)
In-Reply-To: <CAEzSK9sWR9HpA44cyKD0V-qu_DCbAJb28Gkx4LBtkW3gFXUzpQ@mail.gmail.com> (message from e step on Mon, 14 May 2018 10:36:06 -0400)

tags 31452 notabug
thanks

> From: e step <etelepr@gmail.com>
> Date: Mon, 14 May 2018 10:36:06 -0400
> 
>   1. I installed emacs 25.3_1 for Windows
>   2. From cygwin shell, I did "/c/emacs25/emacs-25.3_1-x86_64/bin/emacs.exe -Q"
>   3. Within emacs, I did M-: (getenv "TZ") which returned "America/New York".
>   4. Within emacs, I did M-: (current-time-string)
>   5. The resulting time is using incorrect time zone.
>   6. Inside cygwin, I did "export TZ=" to unset the TZ variable.
>   7. Within emacs, I did M-: (getenv "TZ") which returned nil.
>   8. Within emacs, I did M-: (current-time-string) to get correct time.
> 
> My work around is to not set the TZ variable which is doable but not desirable. 

You are using a native Windows build of Emacs, which doesn't support
Posix-style TZ specifications such "America/New York" (which actually
points to a file with timezone information).  The native Windows build
supports only the old simplified TZ specs such as EST-5EDT.  If you
want Posix TZ specs to be supported, I suggest to use a Cygwin build
of Emacs instead.

When you don't define TZ in the environment, the native Windows build
of Emacs uses the system timezone, which is defined in the Registry,
not through environment variables.

This is not a bug, but expected behavior.  Windows is not a Posix
system, and starting Emacs from a Cygwin shell cannot change that.

Thanks.





      parent reply	other threads:[~2018-05-14 15:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-14 14:36 bug#31452: emacs 25.3; timezone handling broken e step
2018-05-14 14:51 ` bug#31453: " e step
2018-05-14 15:48   ` Eli Zaretskii
2018-05-14 15:45 ` Eli Zaretskii [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=83d0xykzpu.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=31452@debbugs.gnu.org \
    --cc=etelepr@gmail.com \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.