emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Handling Repeating events from google calendar / repeater interv


From: Simon Thum
Subject: Re: [O] Handling Repeating events from google calendar / repeater interval
Date: Sun, 21 Jul 2013 12:44:15 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130525 Thunderbird/17.0.6

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: address@hidden
   :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:address@hidden
UID:address@hidden
DESCRIPTION:
SUMMARY:L+J have jabs with Millie
LOCATION:
SEQUENCE:1
END:VEVENT
   :END:


Stephen





reply via email to

[Prev in Thread] Current Thread [Next in Thread]