[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Incorrect time zone setting
From: |
Reiner Steib |
Subject: |
Re: Incorrect time zone setting |
Date: |
Thu, 07 Jan 2010 20:11:49 +0100 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) Emacs/22.1 (gnu/linux) |
On Wed, Jan 06 2010, Gunnar Vestergaard wrote:
> Reiner Steib wrote:
>> I'm not sure if you really mean "displayed incorrectly" or "generated
>> incorrectly". How (where) did you check?
>
> This is from the raw headers in my message posted to a newsgroup:
> Date: Mon, 04 Jan 2010 10:54:28 -0100
>
> That above is the authentic raw output from GNUS.
>
> And my time zone is really +0100.
Maybe the news server is replacing the Date header.
>> I'm quite sure that Gnus (message.el) doesn't do anything incorrect
>> here, since the defun is pretty simple and doesn't frob timezone data.
>> Maybe you OS returns bogus data.
>
> My Windows XP is set to +0100 time zone which is in Berlin. That is
> correct in my OS.
>
>> (defun message-make-date (&optional now)
>> "Make a valid data header.
>> If NOW, use that time instead."
>> (let ((system-time-locale "C"))
>> (format-time-string "%a, %d %b %Y %T %z" now)))
>
> 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"
| 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
Bye, Reiner.
--
,,,
(o o)
---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/