emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* TIMEZONE property for ical export
@ 2017-08-18 16:53 Eric Abrahamsen
  2017-08-19  8:34 ` Nicolas Goaziou
  0 siblings, 1 reply; 8+ messages in thread
From: Eric Abrahamsen @ 2017-08-18 16:53 UTC (permalink / raw)
  To: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2017-08-19 22:14 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-18 16:53 TIMEZONE property for ical export Eric Abrahamsen
2017-08-19  8:34 ` 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

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).