Skip to content

Commit 78cd9a3

Browse files
committed
Merge pull request #32 from offthread/development
Bug fixing tomorrow's input
2 parents 6615705 + 040c640 commit 78cd9a3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

app/helpers/application_helper.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,9 @@ def getDayFromString (day)
3434
return nil
3535
end
3636

37-
dateRequested = Date.today() + weekDayRequested.to_i
38-
dayRequested = dateRequested.strftime("%d")
37+
dateRequested = Time.zone.now.day.to_i + weekDayRequested.to_i
3938

40-
return dayRequested
39+
return dateRequested.to_s
4140
end
4241

4342
def daysBefore(currentWeekDay, requestedWeekDay)

0 commit comments

Comments
 (0)