From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Christian Lynbech Newsgroups: gmane.emacs.devel Subject: Re: Timezone handling problem in icalendar.el/icalendar-import-* Date: Wed, 16 Dec 2009 19:38:57 +0100 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1260994446 22842 80.91.229.12 (16 Dec 2009 20:14:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 16 Dec 2009 20:14:06 +0000 (UTC) Cc: Emacs development discussions , Christian To: Andreas Schwab Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 16 21:13:59 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NL0Fl-0003z3-L9 for ged-emacs-devel@m.gmane.org; Wed, 16 Dec 2009 21:13:45 +0100 Original-Received: from localhost ([127.0.0.1]:36855 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NL0Fk-00062G-UA for ged-emacs-devel@m.gmane.org; Wed, 16 Dec 2009 15:13:45 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NL0Fc-0005yx-Vd for emacs-devel@gnu.org; Wed, 16 Dec 2009 15:13:37 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NL0FV-0005nt-Pl for emacs-devel@gnu.org; Wed, 16 Dec 2009 15:13:36 -0500 Original-Received: from [199.232.76.173] (port=55097 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NL0FV-0005nd-KC for emacs-devel@gnu.org; Wed, 16 Dec 2009 15:13:29 -0500 Original-Received: from [188.177.171.238] (port=56457 helo=Christians-PMAC.local) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NL0FV-0004PM-6M for emacs-devel@gnu.org; Wed, 16 Dec 2009 15:13:29 -0500 Original-Received: by Christians-PMAC.local (Postfix, from userid 501) id 128E61497E10; Wed, 16 Dec 2009 19:38:57 +0100 (CET) In-Reply-To: (Andreas Schwab's message of "Wed, 16 Dec 2009 15:18:46 +0100") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/22.3 (darwin) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-Greylist: delayed 5653 seconds by postgrey-1.27 at monty-python; Wed, 16 Dec 2009 15:13:12 EST X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:118658 Archived-At: >>>>> "Andreas" == Andreas Schwab writes: Andreas> "Christian" writes: >> (format-time-string "%Y-%m-%dT%T%z" (encode-time 0 30 11 16 12 2009 "(STD?)-02:00(DST?)-03:00,M3.-1.0/03:00:00,M10.-1.0/04:00:00")) >> ;=> "2009-12-16T09:30:00+0100" Andreas> This timezone string is clearly outside of the specs. The timezone Andreas> names shall consist only of alphabetic characters in the portable Andreas> character set. I assume you refer to the use of "(STD?)" and "(DST?)". It actually works since it appears that mktime() will assume GMT if it encounters something it does not understand, but that is admittedly not a wise thing to count on, Why icalendar didn't just use "GMT" or "UTC" is not clear to me. I can also report that when using emacs version "22.3.1" on Mac OSX 10.5.8, one also needs to replace the "-1" with "5". ------------------------+----------------------------------------------------- Christian Lynbech | christian #\@ defun #\. dk ------------------------+----------------------------------------------------- Hit the philistines three times over the head with the Elisp reference manual. - petonic@hal.com (Michael A. Petonic)