@@ -45,19 +45,26 @@ export const currentYearShort = format(new Date(), 'yy');
45
45
46
46
// The "year" for TMAC starts on 7/1
47
47
// new Date(2021, 6, 1) → 7/1/2021
48
- export const isTodayAfterJune30th = isAfter (
48
+ // export const isTodayAfterJune30th = isAfter(
49
+ // new Date(),
50
+ // new Date(parseInt(currentYearLong, 10), 6, 1),
51
+ // );
52
+
53
+ // As of 2023-06-28, the "year" for TMAC starts on 8/1
54
+ // new Date(2023, 7, 1) → 8/1/2023
55
+ export const isTodayAfterJuly31st = isAfter (
49
56
new Date ( ) ,
50
- new Date ( parseInt ( currentYearLong , 10 ) , 6 , 1 ) ,
57
+ new Date ( parseInt ( currentYearLong , 10 ) , 7 , 1 ) ,
51
58
) ;
52
59
53
- export const currentSchoolYearShort = isTodayAfterJune30th
60
+ export const currentSchoolYearShort = isTodayAfterJuly31st
54
61
? `${ currentYearShort } -${ Number ( currentYearShort ) + 1 } `
55
62
: `${ Number ( currentYearShort ) - 1 } -${ currentYearShort } ` ;
56
63
57
- export const currentSchoolYearLong = isTodayAfterJune30th
64
+ export const currentSchoolYearLong = isTodayAfterJuly31st
58
65
? `${ currentYearLong } -${ Number ( currentYearLong ) + 1 } `
59
66
: `${ Number ( currentYearLong ) - 1 } -${ currentYearLong } ` ;
60
67
61
- export const currentSchoolYearEnding = isTodayAfterJune30th
68
+ export const currentSchoolYearEnding = isTodayAfterJuly31st
62
69
? `${ Number ( currentYearLong ) + 1 } `
63
70
: currentYearLong ;
0 commit comments