diff --git a/src/pages/oj/store/modules/contest.js b/src/pages/oj/store/modules/contest.js index cdf3a1d1e..14f3e3430 100644 --- a/src/pages/oj/store/modules/contest.js +++ b/src/pages/oj/store/modules/contest.js @@ -83,7 +83,7 @@ const getters = { if (duration.weeks() > 0) { return 'Start At ' + duration.humanize() } - let texts = [duration.hours(), duration.minutes(), duration.seconds()] + let texts = [Math.floor(duration.asHours()), duration.minutes(), duration.seconds()] return '-' + texts.join(':') } else if (getters.contestStatus === CONTEST_STATUS.UNDERWAY) { let duration = moment.duration(getters.contestEndTime.diff(state.now, 'seconds'), 'seconds')