Permalink
Browse files

Changing parameter type of isOnRecurringDay method

  • Loading branch information...
craigburke committed Feb 17, 2012
1 parent f5f2497 commit 1e60efc86f2b58347ebb6b56520469f139fae514
Showing with 2 additions and 2 deletions.
  1. +2 −2 grails-app/domain/com/craigburke/Event.groovy
@@ -150,7 +150,7 @@ class Event {
boolean occurrenceFound = false
while (!occurrenceFound) {
- if (nextOccurrence.toDate() > afterDate && isOnRecurringDay(nextOccurrence)) {
+ if (nextOccurrence.toDate() > afterDate && isOnRecurringDay(nextOccurrence.toDate())) {
occurrenceFound = true
}
else {
@@ -204,7 +204,7 @@ class Event {
}
private boolean isOnRecurringDay(Date date) {
- int day = new DateTime(date).dayOfWeek()
+ int day = new DateTime(date).getDayOfWeek()
recurDaysOfWeek.find{it == day}
}

0 comments on commit 1e60efc

Please sign in to comment.