Skip to content

Commit

Permalink
Merge pull request #169 from ttwo32/fix_ch_holidays
Browse files Browse the repository at this point in the history
Fix ch holidays.
  • Loading branch information
ttwo32 authored Jun 14, 2020
2 parents fc40eb4 + f7108f2 commit be8e14d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -166,14 +166,13 @@ methods:
arguments: year
ruby: |
date = Date.civil(year,11,1)
# Find the first Monday of September
# Find the first Monday of November
until date.wday.eql? 1 do
date += 1
end
# There are 21 days between the first monday
# and the 4rth Monday after
date + 21
end
tests:
- given:
Expand Down

0 comments on commit be8e14d

Please sign in to comment.