From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: iCal export - possible timezone bug Date: Fri, 8 May 2009 09:18:11 +0200 Message-ID: <22AF8CD5-782F-4BBD-B12E-11F1F2CA024E@gmail.com> References: <49f377d1.0407560a.5f0d.3c81@mx.google.com> <4a0193b6.1438560a.1123.58e4@mx.google.com> <672F1C42-93DC-418A-A252-73BFE3E388C1@gmail.com> <4a031359.0437560a.3c1c.4e49@mx.google.com> <13062.1241718356@gamaville.dokosmarshall.org> Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M2LHO-0005iY-4V for emacs-orgmode@gnu.org; Fri, 08 May 2009 04:18:02 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M2LHJ-0005eb-95 for emacs-orgmode@gnu.org; Fri, 08 May 2009 04:18:01 -0400 Received: from [199.232.76.173] (port=48127 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M2LHJ-0005eS-5l for emacs-orgmode@gnu.org; Fri, 08 May 2009 04:17:57 -0400 Received: from mail-ew0-f162.google.com ([209.85.219.162]:50070) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M2LHI-00089m-Jl for emacs-orgmode@gnu.org; Fri, 08 May 2009 04:17:56 -0400 Received: by ewy6 with SMTP id 6so1759070ewy.42 for ; Fri, 08 May 2009 01:17:55 -0700 (PDT) In-Reply-To: <13062.1241718356@gamaville.dokosmarshall.org> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: nicholas.dokos@hp.com Cc: org-mode , Richard Riley On May 7, 2009, at 7:45 PM, Nick Dokos wrote: > Richard Riley wrote: > >> Carsten Dominik writes: >> >>>>>> >>>>>> X-WR-TIMEZONE:Europe/Berlin >>>>>> >>>>>> and a quick test confirmed this. I don't have a clue if this is >>>>>> emacs >>>>>> side or more in org's remit, but hope this helps. >>>>> >>>>> The only time zone information I get from Emacs is the >>>>> abbreviation. >>>>> Does anyone know how to concert this into the longer form? >>>>> >>>>> - Carsten >>>>> >>>>> >>>> >>>> I asked in the emacs irc and drew a blank. Possibly use what you do >>>> unless an org-timezone string is set for now? >>> >>> >>> this makes sense. >>> >>> For now the variable is org-ical-timezone, maybe >>> later it will be aliased to org-timezone. >>> >>> Available now. >>> >>> - Carsten >>> >>> >> >> tested, works. As does the fix on the export. Thanks. >> > > It might be a good idea to initialize the variable from the TZ > environment variable (if that is set). That way, one could add > > export TZ > TZ=Europe/Amsterdam > > e.g., in the appropriate login shell initialization file and get the > correct behavior with the system date as well as with org-icalendar. OK, good idea, done. Note however that Org does store time and date without time zone information attached to it, so changing the TZ environment variable will not change the display in the agenda etc. - Carsten > I find the timezone stuff very confusing in general, but I have the > (perhaps incorrect) impression that people actually use the TZ env > variable sometimes, although I guess that Linux distros in general try > to automagically do the right thing at installation time by copying > the > appropriate tzfile into /etc/localtime, so you don't have to worry > about > TZ; but if you are switching between timezones or want to override the > default, TZ does work: > > export TZ=US/Eastern > date > export TZ=US/Pacific > date > export TZ=Europe/Berlin > date > > works as expected (this is on Ubuntu 8.04 - BTW, the tzfiles are in > /usr/share/zoneinfo on this distro.) > > Nick > > >