Skip to content

Commit

Permalink
Merge pull request #67 from BCSDLab/feature/#65
Browse files Browse the repository at this point in the history
[버스페이지] 시간 안맞는 문제 수정
  • Loading branch information
ChoiWonBeen authored Jan 8, 2024
2 parents bd0fe8f + 71dd63e commit 2834af9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/BusPage/ts/busModules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const getStartTimeString = (second: number | '미운행' | undefined, isM
if (second === '미운행') return '';

const today = (new Date().getTime() - new Date().getTimezoneOffset() * 60 * 1000);
const arrivalTimeSecond = (today / 1000) + second;
const arrivalTimeSecond = Math.ceil(today / 1000) + second;

const hour = getHour(arrivalTimeSecond);
const minute = getMinute(arrivalTimeSecond);
Expand Down

0 comments on commit 2834af9

Please sign in to comment.