emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: nicholas.dokos@hp.com
Cc: org-mode <emacs-orgmode@gnu.org>,
	Richard Riley <rileyrgdev@googlemail.com>
Subject: Re: iCal export - possible timezone bug
Date: Fri, 8 May 2009 09:18:11 +0200	[thread overview]
Message-ID: <22AF8CD5-782F-4BBD-B12E-11F1F2CA024E@gmail.com> (raw)
In-Reply-To: <13062.1241718356@gamaville.dokosmarshall.org>


On May 7, 2009, at 7:45 PM, Nick Dokos wrote:

> Richard Riley <rileyrgdev@googlemail.com> wrote:
>
>> Carsten Dominik <carsten.dominik@gmail.com> 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
>
>
>

  reply	other threads:[~2009-05-08  8:18 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-25 20:51 iCal export - possible timezone bug Richard Riley
2009-05-06 10:57 ` Carsten Dominik
2009-05-06 13:42   ` Richard Riley
2009-05-06 13:50     ` Carsten Dominik
2009-05-07 16:59       ` Richard Riley
2009-05-07 17:45         ` Nick Dokos
2009-05-08  7:18           ` Carsten Dominik [this message]
2009-05-08 15:02             ` Richard Riley
2009-05-08 15:09               ` Karsten Heymann
2009-05-08 15:51                 ` Richard Riley
2009-05-08 15:11               ` Nick Dokos
2009-05-08 15:27               ` Nick Dokos
2009-05-08 15:49                 ` Richard Riley
2009-05-07  4:44     ` Mario E. Munich
2009-05-07 15:08       ` Richard Riley
2009-05-07 15:23         ` Nick Dokos
2009-05-07 15:49           ` Richard Riley
     [not found]         ` <71454fac0905070813laabf50bg4cb5285b3c48085c@mail.gmail.com>
     [not found]           ` <4a0302c6.0637560a.215f.1158@mx.google.com>
2009-05-07 17:06             ` Richard Riley
2009-05-17 12:31               ` Richard Riley
  -- strict thread matches above, loose matches on Subject: below --
2009-05-08 16:15 Nick Dokos
2009-05-08 16:37 ` Richard Riley
2009-05-08 20:13   ` Nick Dokos
2009-05-08 21:15     ` Nick Dokos

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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=22AF8CD5-782F-4BBD-B12E-11F1F2CA024E@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=nicholas.dokos@hp.com \
    --cc=rileyrgdev@googlemail.com \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).