From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eddward DeVilla" Subject: Re: Timezone Support Date: Tue, 24 Jun 2008 21:54:19 -0500 Message-ID: References: <20080116180323.GE5895@odin.demosthenes.org> <20080117160641.GD30872@odin.demosthenes.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KBL9O-0000JP-Ca for emacs-orgmode@gnu.org; Tue, 24 Jun 2008 22:54:26 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KBL9K-0000IO-6c for emacs-orgmode@gnu.org; Tue, 24 Jun 2008 22:54:25 -0400 Received: from [199.232.76.173] (port=52759 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KBL9J-0000ID-Pc for emacs-orgmode@gnu.org; Tue, 24 Jun 2008 22:54:21 -0400 Received: from py-out-1112.google.com ([64.233.166.178]:29737) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KBL9J-0006MY-8m for emacs-orgmode@gnu.org; Tue, 24 Jun 2008 22:54:21 -0400 Received: by py-out-1112.google.com with SMTP id p76so1575652pyb.1 for ; Tue, 24 Jun 2008 19:54:19 -0700 (PDT) In-Reply-To: <20080117160641.GD30872@odin.demosthenes.org> Content-Disposition: inline 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: emacs-orgmode@gnu.org I found this in an old drafts folder. I just thought I send it in case anyone still cared. On Jan 17, 2008 10:06 AM, Russell Adams wrote: > Would it be practical to extend the time format to include TZ data > (ie: -06:00 ?). Otherwise I'll pick a TZ as standard and just mentally > convert from there. I had an idea come to mind if someone with the elisp-fu wanted to do it. You could put a flag in the file that gives the timezone the file is in. Say #+TIMEZONE: ... or something. Then write a function that will convert all the timestamps in the file from the timezone in the #+ option to the current timezone and update the #+ to reflect the new timezone. Org-mode wouldn't even have to be aware of this. You could call it from a hook when you open org-mode files. If there is no timezone specification you don't convert the file. It could probably be an extension. Edd