From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/24041 Path: main.gmane.org!not-for-mail From: Toby Speight Newsgroups: gmane.emacs.gnus.general Subject: Re: Time zone and 'lapsed under NT Date: 09 Jul 1999 17:31:20 +0100 Organization: Citrix Systems (Cambridge) Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035161677 6559 80.91.224.250 (21 Oct 2002 00:54:37 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 00:54:37 +0000 (UTC) Return-Path: Original-Received: from farabi.math.uh.edu (farabi.math.uh.edu [129.7.128.57]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id MAA21092 for ; Fri, 9 Jul 1999 12:35:54 -0400 (EDT) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by farabi.math.uh.edu (8.9.1/8.9.1) with ESMTP id LAB21193; Fri, 9 Jul 1999 11:35:29 -0500 (CDT) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Fri, 09 Jul 1999 11:36:18 -0500 (CDT) Original-Received: from sclp3.sclp.com (root@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id LAA12638 for ; Fri, 9 Jul 1999 11:36:08 -0500 (CDT) Original-Received: from ironside.ansa.co.uk (ironside.ansa.co.uk [192.5.254.44]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id MAA21069 for ; Fri, 9 Jul 1999 12:35:06 -0400 (EDT) Original-Received: from lanber.cam.citrix.com (LANBER.ansa.co.uk [10.70.1.235]) by ironside.ansa.co.uk (Netscape Mail Server v2.02) with ESMTP id AAA116 for ; Fri, 9 Jul 1999 17:35:48 +0100 Original-To: ding@gnus.org Original-Lines: 28 In-Reply-To: Lars Magne Ingebrigtsen's message of "Fri, 09 Jul 1999 15:11:18 GMT" X-Author-Info: Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:24041 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:24041 Lars> Lars Magne Ingebrigtsen 0> In , 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...