Skip to content

Commit

Permalink
fix: correct default date calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinWu098 authored May 17, 2024
1 parent 54a01cc commit b40cb33
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -598,9 +598,9 @@ const SundaySchedule = () => {
const calculateDefaultDay = () => {
const currentDate = new Date();

if (currentDate < new Date(2024, 4, 17)) {
if (currentDate < new Date(2024, 4, 18)) {
return "Friday";
} else if (currentDate < new Date(2024, 4, 18)) {
} else if (currentDate < new Date(2024, 4, 19)) {
return "Saturday";
} else {
return "Sunday";
Expand Down

0 comments on commit b40cb33

Please sign in to comment.