Skip to content

Commit

Permalink
Merge pull request #163 from chaeyoungwon/feature/24threcruit
Browse files Browse the repository at this point in the history
Fix: 디데이 계산 방식 수정
  • Loading branch information
chaeyoungwon authored Feb 22, 2025
2 parents 4e06f99 + aa2ba45 commit a6a55c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/ticket/TicketDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const TicketDetail = ({ id }: TicketDetailProps) => {
const bookingStart = dayjs(rawData.booking_start_date);
const bookingEnd = dayjs(rawData.booking_end_date);
const now = dayjs();
const daysBeforeStart = bookingStart.diff(now, 'day');
const daysBeforeStart = Math.ceil(bookingStart.diff(now, 'hours') / 24);

let isAvailable = false;
let status = '예매 마감';
Expand Down

0 comments on commit a6a55c9

Please sign in to comment.