Skip to content

Commit

Permalink
DateOrDateTime should conform to dtend spec rules
Browse files Browse the repository at this point in the history
dtend must be later than dtstart
  • Loading branch information
rahearn committed Aug 10, 2016
1 parent e5bc23f commit 1283d7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ Sometimes we don't care if an event's start or end are `Date` or `DateTime` obje
```ruby
event = cal.event do |e|
e.dtstart = Icalendar::Values::DateOrDateTime.new('20140924').call
e.dtend = Icalendar::Values::DateOrDateTime.new('20140924').call
e.dtend = Icalendar::Values::DateOrDateTime.new('20140925').call
e.summary = 'This is an all-day event, because DateOrDateTime will return Dates'
end
```
Expand Down

0 comments on commit 1283d7f

Please sign in to comment.