Skip to content

Commit

Permalink
修复countdown小时显示问题
Browse files Browse the repository at this point in the history
  • Loading branch information
zema1 committed Dec 10, 2017
1 parent aa9159d commit 646d15e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/oj/store/modules/contest.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 646d15e

Please sign in to comment.