emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: torys.anderson@gmail.com (Tory S. Anderson)
To: emacs-orgmode@gnu.org
Subject: Re: Export Agenda to Google Calendar ICS Format (problem found)
Date: Tue, 06 May 2014 05:57:33 -0400	[thread overview]
Message-ID: <877g5zw7oy.fsf_-_@gmail.com> (raw)
In-Reply-To: <87bnvbw90i.fsf@gmail.com> (Tory S. Anderson's message of "Tue, 06 May 2014 05:29:01 -0400")

I've located the problem: it is `org-icalendar-start-file` in org-icalendar.el. It specifically writes X-WR-TIMEZONE tags out when modern standards seem to require BEGIN:VTIMEZONE. When I have time I'll look at re-writing it, unless any of you wizards have already done this/can do it faster than an elisp newbie like myself. 

- Tory

torys.anderson@gmail.com (Tory S. Anderson) writes:

> Thanks for the response, Arun; but my problem isn't which time zone it's using, but the way it outputs it. As described at http://blog.jonudell.net/2011/10/17/x-wr-timezone-considered-harmful/, iCalendar outputs a X-WR-TIMEZONE parameter which is problematic; it should, instead, use BEGIN:VTIMEZONE. Anyone know any solutions? 
>
> - Tory
>
>
>> Date: Mon, 05 May 2014 15:11:25 -0700
>> From: Arun Persaud <apersaud@lbl.gov>
>> To: emacs-orgmode@gnu.org
>> Subject: Re: [O] Export Agenda to Google Calendar ICS Format
>> Message-ID: <53680C8D.6040705@lbl.gov>
>> Content-Type: text/plain; charset=ISO-8859-1
>>
>> Hi
>>
>> On 05/05/2014 02:24 AM, Tory S. Anderson wrote:
>>> Cross-posted from http://stackoverflow.com/questions/23463962/emacs-export-calendar-bad-timezone-format-in-ics
>>> 
>>> Using orgmode I export my agenda to an ics file, upload it to my site, and import it into Google calendar. This seems like an easy ideal solution, but when I check the calendar I find that it is not recognizing the time zone of my ics file and so is assuming GMT, making my imported times uselessly off. The problem seems to be the same as the one described here:
>>> 
>>> http://blog.jonudell.net/2011/10/17/x-wr-timezone-considered-harmful/
>>> 
>>> Checking my exported ics, sure enough, it is using X-WR-TIMEZONE:EST, which Google calendar does not respect. This must be a well-known problem, but I haven't been able to locate a solution anywhere. Help would be appreciated: how can I get the right time on my events (and they must be a feed; the "add to calendar" trick is no good)?
>>
>> I have this in my .emacs file to set the timezone.
>>
>> (setq org-icalendar-timezone "America/Los_Angeles")
>>
>> HTH
>>
>> Arun

  reply	other threads:[~2014-05-06  9:57 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.11338.1399366290.1146.emacs-orgmode@gnu.org>
2014-05-06  9:29 ` Export Agenda to Google Calendar ICS Format Tory S. Anderson
2014-05-06  9:57   ` Tory S. Anderson [this message]
2014-05-06 10:02   ` Eric S Fraga
2014-05-06 10:15     ` Tory S. Anderson

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=877g5zw7oy.fsf_-_@gmail.com \
    --to=torys.anderson@gmail.com \
    --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).