holidays / holidays

A collection of Ruby methods to deal with statutory and other holidays. You deserve a holiday!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Federal reserve error for holidays in 2018

musa-raza opened this issue · comments

Hello, for federal reserve holidays, there is an error in your generator. Veterans day is on the 12th of November this year, not the 11th. https://www.newyorkfed.org/aboutthefed/holiday_schedule.html
screen shot 2018-08-03 at 3 51 19 pm

@musa-raza See the footnote next to the 2018 date for Veteran's Day on the page you linked to.

It falls on November 11th this year, which is a Sunday, so it is observed on Monday, November 12th.

If you want Holidays to return the dates holidays are observed, you need to pass the observed flag, like so: Holidays.year_holidays([:federal_reserve, :observed], Date.today)

Thanks for the clarification @jimryan appreciate it