Skip to content

Commit

Permalink
fixed date bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Fuyuki325 committed Aug 26, 2024
1 parent 3c3d0f1 commit 2c22749
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/home/Upcoming.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const Upcoming = () => {
});

// Extract the day (number)
const day = item.start.getDate();
const date = item.start.getDate();

// Extract the time in AM/PM format
const time = item.start.toLocaleString("en-US", {
Expand All @@ -59,7 +59,7 @@ const Upcoming = () => {
hour12: true,
});
item.month = month;
item.day = day;
item.date = date;
item.time = time;
return item;
});
Expand Down

0 comments on commit 2c22749

Please sign in to comment.