info-gnus-english
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Incorrect time zone setting


From: Gunnar Vestergaard
Subject: Re: Incorrect time zone setting
Date: Thu, 21 Jan 2010 20:22:33 +0000
User-agent: Thunderbird 2.0.0.23 (Windows/20090812)

Reiner Steib wrote Jan 7th about a time zone issue in Emacs and gnus:
On Wed, Jan 06 2010, Gunnar Vestergaard wrote:
How do I evaluate this into an expression in Emacs? I don't know anything
about LISP.

Several options:

- M-x ielm RET

,----[ M-x ielm RET ]
| *** Welcome to IELM ***  Type (describe-mode) for help.
| ELISP> (format-time-string "%a, %d %b %Y %T %z" nil)
| "Thu, 07 Jan 2010 20:08:59 +0100"

I did that and the string displayed was
"Thu, 21 Jan 2010 16:55:04 -0100"
It should instead be +0000, as I am now in another time zone than when my original message was posted.

| ELISP> (let ((system-time-locale "C"))
|        (format-time-string "%a, %d %b %Y %T %z" nil))
| "Thu, 07 Jan 2010 20:09:02 +0100"
| ELISP> (message-make-date)
| "Thu, 07 Jan 2010 20:09:12 +0100"
| ELISP> `----

- in the *scratch* buffer, use `C-j' after an expression

- M-: runs the command eval-expression

Gunnar Vestergaard
Torshavn, Faroe Islands





reply via email to

[Prev in Thread] Current Thread [Next in Thread]