diff options
| author | hukl <contact@smyck.org> | 2009-04-13 10:08:52 +0200 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-04-13 10:08:52 +0200 |
| commit | 8e90dd908c7e1d7fb8fb0e7c175b820e9b7b7c61 (patch) | |
| tree | 29b5d9ce1fe430ff56b7646733a1426ca8e31b61 | |
| parent | 57e55f346ebf2d4133bd0da73a5ae0e982e0e1fa (diff) | |
uses the new chaos_calendar gem as well
| -rw-r--r-- | lib/chaos_importer.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chaos_importer.rb b/lib/chaos_importer.rb index 74e0bbe..c1ecc7d 100644 --- a/lib/chaos_importer.rb +++ b/lib/chaos_importer.rb | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | require 'iconv' | 1 | require 'iconv' |
| 2 | require 'nokogiri' | 2 | require 'nokogiri' |
| 3 | require 'lib/chaos_calendar/ical_occurrences' | 3 | require 'chaos_calendar' |
| 4 | require 'digest/sha1' | 4 | require 'digest/sha1' |
| 5 | 5 | ||
| 6 | 6 | ||
| @@ -214,7 +214,7 @@ class ChaosImporter | |||
| 214 | if dtend | 214 | if dtend |
| 215 | return dtend.content | 215 | return dtend.content |
| 216 | elsif duration | 216 | elsif duration |
| 217 | parsed_duration = Ical_occurrences.duration_to_fixnum(duration.content) | 217 | parsed_duration = ChaosCalendar.duration_to_fixnum(duration.content) |
| 218 | return (dtstart.content.to_time + parsed_duration) | 218 | return (dtstart.content.to_time + parsed_duration) |
| 219 | else | 219 | else |
| 220 | raise("Neiter DTEND nor DURATION found") | 220 | raise("Neiter DTEND nor DURATION found") |
