Skip to content

Commit

Permalink
reverse args because region was showing up nil
Browse files Browse the repository at this point in the history
  • Loading branch information
erluti committed Sep 12, 2024
1 parent f90664b commit 0c6edc2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions us.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ months:
- name: Juneteenth National Independence Day
regions: [us]
mday: 19
observed: juneteenth_national_independence_day(date, region)
observed: juneteenth_national_independence_day(region, date)
year_ranges:
from: 2021
- name: Emancipation Day in Texas # fixed
Expand Down Expand Up @@ -365,9 +365,9 @@ methods:
# When Saturday or Sunday, it's on next Monday
# When Tuesday through Friday, it's on the preceeding Monday
# all other states it's observed like "to_weekday_if_weekend"
arguments: date, region
arguments: region, date
ruby: |
if region == "us_ut"
if region == :us_ut
case date.wday
when 1
date
Expand Down

0 comments on commit 0c6edc2

Please sign in to comment.