Skip to content

Commit

Permalink
fix: 날짜 변경 (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
junyeokk committed May 23, 2024
1 parent 66aaf6e commit a1adcf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/display/TimeTableSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ interface TimeTableSectionProps {

export const TimeTableSection: React.FC<TimeTableSectionProps> = ({ title, data, locationRef, currentTime }) => {
const isCurrentEvent = (eventTime: string): boolean => {
const [startTime, endTime] = eventTime.split(" ~ ").map((time) => new Date(`2024-05-22T${time}:00`));
const [startTime, endTime] = eventTime.split(" ~ ").map((time) => new Date(`2024-05-23T${time}:00`));
return currentTime >= startTime && currentTime <= endTime;
};

Expand Down

0 comments on commit a1adcf7

Please sign in to comment.