Revert "Fix uptimes returning with everything in days"
This reverts commit 88ac2d4ab0
.
This commit is contained in:
parent
570edf6da5
commit
31ee6be7f6
1 changed files with 4 additions and 4 deletions
|
@ -12,10 +12,10 @@ module.exports = {
|
||||||
const minutes = parseInt((totalSeconds % 3600) / 60);
|
const minutes = parseInt((totalSeconds % 3600) / 60);
|
||||||
const seconds = parseInt(totalSeconds % 60);
|
const seconds = parseInt(totalSeconds % 60);
|
||||||
|
|
||||||
const daystring = days + (days === 1 ? " day" : " days");
|
const daystring = days + (days === 1 ? "day" : "days");
|
||||||
const hourstring = hours + (hours === 1 ? " hour" : " hours");
|
const hourstring = hours + (hours === 1 ? "day" : "days");
|
||||||
const minutetring = minutes + (minutes === 1 ? " minute" : " minutes");
|
const minutetring = minutes + (minutes === 1 ? "day" : "days");
|
||||||
const secondstring = seconds + (seconds === 1 ? " second" : " seconds");
|
const secondstring = seconds + (seconds === 1 ? "day" : "days");
|
||||||
|
|
||||||
return `${daystring}**, **${hourstring}**, **${minutetring}**, **${secondstring}`;
|
return `${daystring}**, **${hourstring}**, **${minutetring}**, **${secondstring}`;
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue