From 646d15e3ee973a17b9d32bd2a4abc2f9d050e3e8 Mon Sep 17 00:00:00 2001 From: zema1 Date: Sun, 10 Dec 2017 09:17:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dcountdown=E5=B0=8F=E6=97=B6?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/oj/store/modules/contest.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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')