all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Sebastian Luque <sluque@mun.ca>
Cc: Pascal Bourguignon <spam@mouse-potato.com>
Subject: Re: date discrepancies
Date: Thu, 02 Sep 2004 10:42:03 -0400	[thread overview]
Message-ID: <200409021042.03878.sluque@mun.ca> (raw)
In-Reply-To: <87k6vdjgnv.fsf@thalassa.informatimago.com>

Thanks Pascal, I'm a bit confused about which environment Emacs is getting to 
run shell commands. All date and time variables are correct in shell. I'm 
using a Debian box and checking the binaries for emacs, there are three of 
them: emacs, emacs21, and emacs21-x. I've always been using emacs21, which 
gives the wrong time. But if I run emacs, then it gives the correct time 
variables. Why is there a difference?


On Thu, 2 September 2004 03:04 -0500, Pascal Bourguignon wrote:
> To see the time zone in emacs, type in *scratch*:  (getenv "TZ") C-u C-x
> C-e To see it in shell, type: echo $TZ

Under emacs21, the result was "nil", and in shell, I get "America/Winnipeg", 
which is correct.


> Try it in a shell on xterm and in a shell on emacs: M-x shell RET echo $TZ
> RET

This emacs command gives the correct result, using emacs21. However, in the 
same session, M-! echo $TZ, gives no output. I'm very confused; M-x shell and 
M-! seem to be getting different environments.


> You can correct it either by modifying the environment used by the
> program that launches emacs, or from emacs using:
>
>     (setenv "TZ" "CEST") C-x C-e
>
> or inserting: (setenv "TZ" "CEST")
> in your ~/.emacs

Because my time has been already correctly set, changing it like this messes 
it up, and now the time is incorrect both in shell and in emacs M-! date, 
although the time zone shows ok. Very strange.

There is a difference between emacs and emacs21 that I'm not understanding. 
Any comments would be greatly appreciated.

Cheers,
Sebastian

  reply	other threads:[~2004-09-02 14:42 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-24  7:53 automate Emacs beautifyer ? Bert Cuzeau
2004-08-24  8:22 ` Joost Kremers
2004-08-24 10:15 ` Miguel Frasson
2004-08-25  8:31   ` Oliver Scholz
2004-08-25  8:48     ` Miguel Frasson
2004-08-25 15:58       ` Kevin Rodgers
2004-08-29  9:48         ` Oliver Scholz
2004-09-02  2:10           ` date discrepancies Sebastian Luque
     [not found]           ` <mailman.1182.1094095164.1998.help-gnu-emacs@gnu.org>
2004-09-02  7:04             ` Pascal Bourguignon
2004-09-02 14:42               ` Sebastian Luque [this message]
2004-09-02 16:17                 ` Sebastian Luque
2004-09-02 19:29             ` Stefan Monnier
2014-08-13 14:26               ` thymythos
2004-08-25 16:03       ` automate Emacs beautifyer ? David Kastrup
2004-08-25 20:30       ` LEE Sau Dan
2004-08-24 15:52 ` Kevin Rodgers
2004-08-24 19:13   ` Michael Slass
2004-08-24 23:27     ` Kevin Rodgers
2004-08-25  0:15       ` Michael Slass
2004-08-25 16:12         ` Kevin Rodgers
2004-08-26 15:26     ` Kevin Rodgers
2004-08-28 10:58 ` Kai Grossjohann

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=200409021042.03878.sluque@mun.ca \
    --to=sluque@mun.ca \
    --cc=spam@mouse-potato.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.