Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion lib/ice_cube/parsers/ical_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,11 @@ def self.rule_from_ical(ical)
when 'COUNT'
params[:count] = value.to_i
when 'UNTIL'
params[:until] = Time.parse(value).utc
params[:until] = if value =~ /^\d{8}$/
Date.parse(value).to_datetime.to_time
else
Time.parse(value)
end.utc
when 'WKST'
params[:wkst] = TimeUtil.ical_day_to_symbol(value)
when 'BYSECOND'
Expand Down