* Incorrect time zone setting
@ 2010-01-05 15:20 Gunnar Vestergaard
2010-01-06 9:13 ` Reiner Steib
0 siblings, 1 reply; 5+ messages in thread
From: Gunnar Vestergaard @ 2010-01-05 15:20 UTC (permalink / raw)
To: info-gnus-english
When I post an article in Emacs/gnus, the Date header is set
incorrectly. The time zone appears as -0100, whereas I am located in the
time zone +0100. How do I correct that?
I use Emacs 23.1.1 / gnus on Cygwin/X software.
Gunnar
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Incorrect time zone setting
2010-01-05 15:20 Incorrect time zone setting Gunnar Vestergaard
@ 2010-01-06 9:13 ` Reiner Steib
2010-01-06 22:28 ` Gunnar Vestergaard
0 siblings, 1 reply; 5+ messages in thread
From: Reiner Steib @ 2010-01-06 9:13 UTC (permalink / raw)
To: info-gnus-english
On Tue, Jan 05 2010, Gunnar Vestergaard wrote:
> When I post an article in Emacs/gnus, the Date header is set incorrectly. The
> time zone appears as -0100, whereas I am located in the time zone +0100.
I'm not sure if you really mean "displayed incorrectly" or "generated
incorrectly". How (where) did you check?
> How do I correct that?
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.
(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)))
> I use Emacs 23.1.1 / gnus on Cygwin/X software.
Bye, Reiner.
--
,,,
(o o)
---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Incorrect time zone setting
2010-01-06 9:13 ` Reiner Steib
@ 2010-01-06 22:28 ` Gunnar Vestergaard
2010-01-07 19:11 ` Reiner Steib
0 siblings, 1 reply; 5+ messages in thread
From: Gunnar Vestergaard @ 2010-01-06 22:28 UTC (permalink / raw)
To: info-gnus-english
Reiner Steib wrote:
> On Tue, Jan 05 2010, Gunnar Vestergaard wrote:
>
>> When I post an article in Emacs/gnus, the Date header is set incorrectly. The
>> time zone appears as -0100, whereas I am located in the time zone +0100.
>
> 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.
>> How do I correct that?
>
> 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.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Incorrect time zone setting
2010-01-06 22:28 ` Gunnar Vestergaard
@ 2010-01-07 19:11 ` Reiner Steib
2010-01-21 20:22 ` Gunnar Vestergaard
0 siblings, 1 reply; 5+ messages in thread
From: Reiner Steib @ 2010-01-07 19:11 UTC (permalink / raw)
To: info-gnus-english
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/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Incorrect time zone setting
2010-01-07 19:11 ` Reiner Steib
@ 2010-01-21 20:22 ` Gunnar Vestergaard
0 siblings, 0 replies; 5+ messages in thread
From: Gunnar Vestergaard @ 2010-01-21 20:22 UTC (permalink / raw)
To: info-gnus-english
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
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2010-01-21 20:22 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-05 15:20 Incorrect time zone setting Gunnar Vestergaard
2010-01-06 9:13 ` Reiner Steib
2010-01-06 22:28 ` Gunnar Vestergaard
2010-01-07 19:11 ` Reiner Steib
2010-01-21 20:22 ` Gunnar Vestergaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).