From d4be5b29ea7b8766462c30947c963f5a2bb2fa92 Mon Sep 17 00:00:00 2001 From: kylekatarnls Date: Sat, 19 Oct 2024 19:22:40 +0200 Subject: [PATCH] Observe 12-31 in USA if next New Year is on Saturday Fix #87 --- src/Cmixin/HolidayNames/en.php | 1 + src/Cmixin/Holidays/us-national.php | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Cmixin/HolidayNames/en.php b/src/Cmixin/HolidayNames/en.php index ef7534c..2b32ed6 100644 --- a/src/Cmixin/HolidayNames/en.php +++ b/src/Cmixin/HolidayNames/en.php @@ -20,6 +20,7 @@ 'mlk-day' => 'Martin Luther King Jr. Day', 'national-day' => 'National Day', 'new-year' => 'New Year', + 'new-year-previous-day' => 'New Year previous day', 'new-year-next-day' => 'New Year next day', 'pentecost' => 'Pentecost', 'pentecost-monday' => 'Pentecost Monday', diff --git a/src/Cmixin/Holidays/us-national.php b/src/Cmixin/Holidays/us-national.php index 9e7e7fc..72ec105 100644 --- a/src/Cmixin/Holidays/us-national.php +++ b/src/Cmixin/Holidays/us-national.php @@ -1,7 +1,9 @@ '= 01-01 substitute', // New Year's Day + 'new-year' => '= 01-01 on Monday,Tuesday,Wednesday,Thursday,Friday', // New Year's Day + 'new-year-next-day' => '= 01-02 on Monday', // New Year's Day (observance) + 'new-year-previous-day' => '= 12-31 on Friday', // New Year's Day (observance) // Martin Luther King Jr. Day 'mlk-day' => '= third Monday of january', '3rd-monday-in-february' => '= third Monday of February',