You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Maybe this is more of a feature request, but I'm looping through occurrences and based on a set of criteria, I want to add that occurrence as an exception time. Everything allows me to, but when I go to serialize the schedule it fails with ArgumentError: cannot serialize "2017-10-15T00:00:00.000Z", expected a Time. This is easily overcome if I use .to_time or .start_time but it seems natural for occurrences to be supported
example code:
schedule.next_occurrences(10).map do |occurrence|
if add_exception?(occurrence)
schedule.add_exception_time(occurrence)
end
end
The text was updated successfully, but these errors were encountered:
Maybe this is more of a feature request, but I'm looping through occurrences and based on a set of criteria, I want to add that occurrence as an exception time. Everything allows me to, but when I go to serialize the schedule it fails with
ArgumentError: cannot serialize "2017-10-15T00:00:00.000Z", expected a Time
. This is easily overcome if I use.to_time
or.start_time
but it seems natural for occurrences to be supportedexample code:
The text was updated successfully, but these errors were encountered: