Skip to content

Commit

Permalink
Merge branch 'hotfix/1.18.9'
Browse files Browse the repository at this point in the history
  • Loading branch information
publdaze committed Jun 25, 2023
2 parents 5354601 + b3717a0 commit a9775a0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/page/CTF/Components/ChallengeModal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,11 @@ const ChallengeModal = forwardRef(({ pid, member }, ref) => {
return;
}

const timeDiff =
(new Date().getTime() - new Date(lastTryTime).getTime()) / 1000;
const kst = new Date(
new Date().toLocaleString('en', { timeZone: 'Asia/Seoul' })
);

const timeDiff = (kst.getTime() - new Date(lastTryTime).getTime()) / 1000;

if (timeDiff <= FLAG_WAITING_TIME) {
setFlagCheckMsg(
Expand Down

0 comments on commit a9775a0

Please sign in to comment.