Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Also serialize exdates and rdates for backward compat

  • Loading branch information...
commit fb841a24ae3da98973cae1c8e8e641d534f0be20 1 parent 05f8677
@seejohnrun authored
Showing with 7 additions and 0 deletions.
  1. +7 −0 lib/ice_cube/schedule.rb
View
7 lib/ice_cube/schedule.rb
@@ -302,6 +302,13 @@ def self.from_hash(data, options = {})
data[:extimes] && data[:extimes].each do |t|
schedule.add_exception_time TimeUtil.deserialize_time(t)
end
+ # Also serialize old format for backward compat
+ data[:rdates] && data[:rdates].each do |t|
+ schedule.add_recurrence_time TimeUtil.deserialize_time(t)
+ end
+ data[:exdates] && data[:exdates].each do |t|
+ schedule.add_exception_time TimeUtil.deserialize_time(t)
+ end
schedule
end
Please sign in to comment.
Something went wrong with that request. Please try again.