Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resetting end-of-module dates per official calendar #107

Merged
merged 1 commit into from
Nov 30, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 5 additions & 11 deletions src/helpers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,17 +101,11 @@ export const createPairingsForQuery = (chosenAvails, inning, pairerId) => {

export const getDaysRemaining = () => {
const endDates = [
new Date('Thu June 6 2019'),
new Date('Thu August 1 2019'),
new Date('Thu September 19 2019'),
new Date('Thu November 7 2019'),
new Date('Thu January 16 2020'),
new Date('Thu March 5 2020'),
new Date('Thu April 23 2020'),
new Date('Thu June 11 2020'),
new Date('Thu August 6 2020'),
new Date('Thu September 24 2020'),
new Date('Thu November 12 2020')
new Date('Thu November 12 2020'),
new Date('Thu January 21 2021'),
new Date('Thu March 11 2021'),
new Date('Thu April 29 2021'),
new Date('Thu June 17 2021')
];
const today = new Date();
const nextEndDate = endDates.find(date => {
Expand Down