Skip to content

Commit

Permalink
fix: 2024 in UI dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
pl4nty authored Nov 9, 2023
1 parent 97cb7be commit 9c07acb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion api/sessions/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ export default async function (context, req) {
body: {
2021: ['S1','S2','X1','X2','X3','X4'],
2022: ['S1','S2','X1','X2','X3','X4'],
2023: ['S1','S2','X1','X2','X3','X4']
2023: ['S1','S2','X1','X2','X3','X4'],
2024: ['S1','S2','X1','X2','X3','X4']
}
}
}
5 changes: 3 additions & 2 deletions src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,9 @@ export const unsetQueryParam = param => {
export const getStartOfSession = () => {
const [year, session] = getInitialState()
return {
'2022S1': new Date('2022-02-20T21:00:00Z'), // 8AM 21 Feb in GMT
'2023S1': new Date('2023-02-20T21:00:00Z'), // 8AM 21 Feb in GMT
'2022S1': new Date('2022-02-20T21:00:00Z'), // 8AM Mon 21 Feb in GMT
'2023S1': new Date('2023-02-19T21:00:00Z'), // 8AM Mon 20 Feb in GMT
'2024S1': new Date('2024-02-18T21:00:00Z'), // 8AM Mon 19 Feb in GMT
}?.[year + session]
}

Expand Down

0 comments on commit 9c07acb

Please sign in to comment.