emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: Richard Riley <rileyrgdev@googlemail.com>
Cc: org-mode <emacs-orgmode@gnu.org>
Subject: Re: iCal export - possible timezone bug
Date: Thu, 07 May 2009 13:45:56 -0400	[thread overview]
Message-ID: <13062.1241718356@gamaville.dokosmarshall.org> (raw)
In-Reply-To: Message from Richard Riley <rileyrgdev@googlemail.com> of "Thu, 07 May 2009 18:59:03 +0200." <4a031359.0437560a.3c1c.4e49@mx.google.com>

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.

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-07 17:46 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 [this message]
2009-05-08  7:18           ` Carsten Dominik
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=13062.1241718356@gamaville.dokosmarshall.org \
    --to=nicholas.dokos@hp.com \
    --cc=emacs-orgmode@gnu.org \
    --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).