emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: emacs-orgmode@gnu.org
Subject: TIMEZONE property for ical export
Date: Fri, 18 Aug 2017 09:53:32 -0700	[thread overview]
Message-ID: <87ziawx1f7.fsf@ericabrahamsen.net> (raw)

Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:

> Hello,
>
> Eric Abrahamsen <eric@ericabrahamsen.net> writes:
>
>> Hey, now's the time to bring up something I've wanted to do for
>> a while:
>
> I think this deserves its own thread.

Here we go!

>> adding support for per-entry timezones to the ical export. 
>
> It sounds good.
>
>> I've attached a draft patch that shows what I mean. Basically you give
>> an entry a TIMEZONE property in the tz database format (eg
>> "Europe/London") and it will pass that on to the DTSTART/DTEND
>> properties.
>>
>> I suppose it would also be possible to have separate properties for
>> start and end timezones, then we could do plane trips!
>
> Right. But since Org doesn't support time zones, the usefulness may be
> limited.

Yeah, I'm not convinced it's worthwhile. It's really only the one
use-case, though it would be handy.

Out of curiosity, what's your stance on supporting time zones in Org's
timestamps? It would be an enormous amount of work, obviously, but in
principle?

>> +When optional argument TZ is non-nil, timezone data time will be
>> +added to the timestamp.  It can be the string \"UTC\", to use UTC
>> +time, or a string in the IANA TZ database
>> +format (e.g. \"Europe/London\").  In either case, the value of
>> +`org-icalendar-date-time-format' will be ignored."
>
> I suggest to have symbol t as an equivalent to "UTC", for compatibility
> with, e.g., ZONE in `format-time-string'.

That's pretty much what it was before I messed with it, and I was a
little confused because no callers of `org-icalendar-convert-timestamp'
ever used the optional fourth argument at all. My thinking was that
users might want to explicitly set the timezone to "UTC". To be honest
I'm not sure why they would, but I also don't know why we'd accept t
when nothing uses it. I found the whole handling of utc-or-not a bit
confusing. What do you think?

Thanks,
Eric

             reply	other threads:[~2017-08-18 16:53 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-18 16:53 Eric Abrahamsen [this message]
2017-08-19  8:34 ` TIMEZONE property for ical export Nicolas Goaziou
2017-08-19 17:13   ` Eric Abrahamsen
2017-08-19 19:25     ` Nicolas Goaziou
2017-08-19 19:56       ` Eric Abrahamsen
2017-08-19 21:20         ` Nicolas Goaziou
2017-08-19 21:54           ` Eric Abrahamsen
2017-08-19 22:14             ` Nicolas Goaziou

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=87ziawx1f7.fsf@ericabrahamsen.net \
    --to=eric@ericabrahamsen.net \
    --cc=emacs-orgmode@gnu.org \
    /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).