From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Thum Subject: Re: Handling Repeating events from google calendar / repeater interval Date: Sun, 21 Jul 2013 12:44:15 +0200 Message-ID: <51EBBB7F.4090609@gmx.de> References: <85k3l1nljo.fsf@damtp.cam.ac.uk> <51DBAFD6.1030608@gmx.de> <85ppuisdax.fsf@damtp.cam.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46150) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V0r7j-0001Iq-BM for emacs-orgmode@gnu.org; Sun, 21 Jul 2013 06:44:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V0r7i-0007ZU-7a for emacs-orgmode@gnu.org; Sun, 21 Jul 2013 06:44:19 -0400 Received: from mout.gmx.net ([212.227.15.19]:52503) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V0r7h-0007ZH-UW for emacs-orgmode@gnu.org; Sun, 21 Jul 2013 06:44:18 -0400 Received: from [192.168.2.100] ([88.68.18.160]) by mail.gmx.com (mrgmx001) with ESMTPSA (Nemesis) id 0Me8di-1Um3Is0av0-00PtrN for ; Sun, 21 Jul 2013 12:44:16 +0200 In-Reply-To: <85ppuisdax.fsf@damtp.cam.ac.uk> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Stephen Eglen Cc: emacs-orgmode On 07/16/2013 06:02 PM, Stephen Eglen wrote: > >> It's not exactly answering your question but my little tool >> >> https://github.com/simonthum/ical2org > > Dear Simon, > Does your script handle summer time differences? My google calendar > items are importing okay, but they are off by one hour. I've tried > setting > DEFAULT_TZ = 'Europe/London' > > in your script, but still I see no change. Below is one such entry, if > that helps. The [UTC] after the timestamp would indicate to me that the > time is correct (09:10 UTC, or 10:10 with one hour added for British > Summer Time). But orgmode doesn't recognise the [UTC] note I think. Hi, thanks for your report. I did not immediately see your mail due to an email config problem. Regarding your earlier mail, I fixed the typo. Yes, org-mode does not recognize the [UTC], that is just a helper for exactly this case: The ical's timezone is emitted in case it is different from your DEFAULT_TZ. For me it worked fine so far. What it does is to set the default timzone in ri_cal which I read as being enough, but it is possible that it is not. In fact, I did not test the timezone features very much. could you please try the follwing: Subsitute the second line in orgTimeSpanTZ def orgTimeSpanTZ(tstart, tend, repeaterClause = nil) res = orgTimeSpan(tstart, tend, repeaterClause) for res = orgTimeSpan(tstart.ruby_value, tend.ruby_value, repeaterClause) ? It's not tested but might do the job. HTH, Simon > > Stephen > > > > > * L+J have jabs with Millie (CONFIRMED) > :PROPERTIES: > :ID: kcd35lc23lt4260bovkc0gch1o@google.com > :icalCategories: > :END: > <2013-07-23 Tu 09:10-09:30> [UTC] > Location: > > > :ICALENDAR: > BEGIN:VEVENT > CREATED;VALUE=DATE-TIME:20130716T082258Z > DTEND;VALUE=DATE-TIME:20130723T093000Z > STATUS:CONFIRMED > DTSTART;VALUE=DATE-TIME:20130723T091000Z > TRANSP:OPAQUE > DTSTAMP;VALUE=DATE-TIME:20130716T154820Z > LAST-MODIFIED;VALUE=DATE-TIME:20130716T082349Z > ATTENDEE;CN=Family;CUTYPE=INDIVIDUAL;PARTSTAT=ACCEPTED;ROLE=REQ-PARTICIPANT;X-NUM-GUESTS=0:mailto:9j2ef3g23899k14qu5d3qe5d7o@group.calendar.google.com > UID:kcd35lc23lt4260bovkc0gch1o@google.com > DESCRIPTION: > SUMMARY:L+J have jabs with Millie > LOCATION: > SEQUENCE:1 > END:VEVENT > :END: > > > Stephen >