Skip to content

Commit 13e6aac

Browse files
authored
meetup exercise: off-by-one error (#345)
1 parent 4ecd10d commit 13e6aac

File tree

2 files changed

+104
-96
lines changed

2 files changed

+104
-96
lines changed

exercises/practice/meetup/.meta/example.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ meetup = ({year, month, week, dayofweek}) ->
3333
loop
3434
d = date.getDate()
3535
if date.getDay() == dayofweek and d >= week
36-
return Date.UTC date.getFullYear(), date.getMonth() + 1, d
36+
return new Date date.getFullYear(), date.getMonth(), d
3737
date.setDate d + 1
3838

3939
module.exports = {Weeks, Weekdays, meetup}

0 commit comments

Comments
 (0)