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: kcd35lc23lt4260bovkc0gc...@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:9j2ef3g23899k14qu5d3qe5...@group.calendar.google.com
UID:kcd35lc23lt4260bovkc0gc...@google.com
DESCRIPTION:
SUMMARY:L+J have jabs with Millie
LOCATION:
SEQUENCE:1
END:VEVENT
   :END:


Stephen



Reply via email to