This repository has been archived by the owner on Dec 31, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 86
Calculates Day After Thanksgiving incorrectly for 2019 #21
Comments
same issue |
AndrewLane
added a commit
to AndrewLane/moment-holiday
that referenced
this issue
Oct 5, 2018
* Unfortunately, I did not take the time to figure out a fix
FYI I added a test that demonstrates the bug here: #34 I hope it's helpful. |
I have the same issue |
|
@smarth55 actually at this point i'm wondering if we should consider this a dead project since I haven't seen commits since 2017. |
The day of reckoning is upon us!!! Hopefully no one has important client facing code relying on this! Our little slack bot tool didn't give us our notifications this morning because of this bug, but that doesn't REALLY matter. Good luck all moment-holiday users! |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Looks like the library assumes that the Day After Thanksgiving is the 4th Friday of November based on this code:
moment-holiday/locale/united_states.js
Line 73 in 447e7ff
However, on years like 2019 when the first day of the month of November is Friday, this means that the code will actually calculate the day after Thanksgiving as being before Thanksgiving itself. To repro:
Expected:
Actual:
The text was updated successfully, but these errors were encountered: