1
0
mirror of https://github.com/misskey-dev/misskey synced 2024-12-04 01:38:59 +09:00
This commit is contained in:
MeiMei 2020-07-20 00:57:10 +09:00 committed by GitHub
parent ce8fa8e423
commit 1c200c9b94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -52,9 +52,9 @@ export default Vue.extend({
}, },
timer(): string { timer(): string {
return this.$t( return this.$t(
this.remaining > 86400 ? '_poll.remainingDays' : this.remaining >= 86400 ? '_poll.remainingDays' :
this.remaining > 3600 ? '_poll.remainingHours' : this.remaining >= 3600 ? '_poll.remainingHours' :
this.remaining > 60 ? '_poll.remainingMinutes' : '_poll.remainingSeconds', { this.remaining >= 60 ? '_poll.remainingMinutes' : '_poll.remainingSeconds', {
s: Math.floor(this.remaining % 60), s: Math.floor(this.remaining % 60),
m: Math.floor(this.remaining / 60) % 60, m: Math.floor(this.remaining / 60) % 60,
h: Math.floor(this.remaining / 3600) % 24, h: Math.floor(this.remaining / 3600) % 24,