Gnus development mailing list
 help / color / mirror / Atom feed
From: Toby Speight <Toby.Speight@streapadair.freeserve.co.uk>
Subject: Re: Time zone and 'lapsed under NT
Date: 09 Jul 1999 17:31:20 +0100	[thread overview]
Message-ID: <uiu7tiy3r.fsf@lanber.cam.citrix.com> (raw)
In-Reply-To: Lars Magne Ingebrigtsen's message of "Fri, 09 Jul 1999 15:11:18 GMT"

Lars> Lars Magne Ingebrigtsen <URL:mailto:larsi@gnus.org>

0> In <URL:news:m34sjdsv8e.fsf@quimbies.gnus.org>, Lars wrote:

Lars> I've had reports the when doing X-Sent headers under NTEmacs and
Lars> XEmacs for NT, the time zone seems to be ignored.  Could someone
Lars> investigate what's going on here?

It seems to be ignoring the local time zone (it takes account of the
one on the message but assumes that the (current-time) is returning UT
rather than local time - or the other way around?

For me, (current-time-zone) returns '(3600 "GMT Daylight Time"); I
wonder if the zone name is causing confusion.  It's certainly a strange
identifier for BST!  The offset of 3600 is correct for me, though.

[Aside:

      (let ((tz (car (current-time-zone))))
        (format "Date: %s %s%04d" (current-time-string time)
                (if (> tz 0) "+" "-") (abs (/ tz 36))))

won't work very well for non-integral time zones - India will appear
as +0550 instead of +0530.]

The Emacs documentation doesn't describe (current-time) very well.  It
says, "the current time, as the number of seconds since 1970-01-01
00:00:00" - without specifying a time zone for that epoch...



  reply	other threads:[~1999-07-09 16:31 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-07-09 15:23 Lars Magne Ingebrigtsen
1999-07-09 16:31 ` Toby Speight [this message]
1999-07-09 21:01   ` Lars Magne Ingebrigtsen
1999-07-12 18:37     ` Toby Speight
1999-07-15 11:55       ` Toby Speight
1999-08-27 17:57         ` Lars Magne Ingebrigtsen
1999-08-27 17:55       ` Lars Magne Ingebrigtsen
1999-07-12 18:44     ` Toby Speight

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=uiu7tiy3r.fsf@lanber.cam.citrix.com \
    --to=toby.speight@streapadair.freeserve.co.uk \
    /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.
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).