Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tinohager committed Jun 18, 2021
1 parent c5f8607 commit 3b9d8aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Src/Nager.Date/PublicHolidays/UnitedStatesProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public IEnumerable<PublicHoliday> Get(int year)

#region Juneteenth

if (DateTime.Now.Year >= 2021)
if (year >= 2021)
{
var juneteenth = new DateTime(year, 6, 19).Shift(saturday => saturday.AddDays(-1), sunday => sunday.AddDays(1));
items.Add(new PublicHoliday(juneteenth, "Juneteenth", "Juneteenth", countryCode, 2021));
Expand Down

0 comments on commit 3b9d8aa

Please sign in to comment.