Skip to content

Commit

Permalink
Fix events non recurrent
Browse files Browse the repository at this point in the history
  • Loading branch information
revelaction committed Dec 18, 2023
1 parent 2006aa0 commit 5cef76d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions ical/eventtime.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,16 +133,16 @@ func (et *EventTime) nextTime(now time.Time) (time.Time, error) {
return time.Time{}, err
}

//if !et.hasRRule() && !et.hasRDate() {
// dtStart := s.GetDTStart()
if !et.hasRRule() && !et.hasRDate() {
dtStart := s.GetDTStart()

// if dtStart.After(now) {
// return dtStart, nil
// }
if dtStart.After(now) {
return dtStart, nil
}

// // expired
// return time.Time{}, nil
//}
// expired
return time.Time{}, nil
}

return s.After(now, false), nil
}
Expand Down

0 comments on commit 5cef76d

Please sign in to comment.