mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-12-22 20:53:17 +00:00
Fixed typo in msToTime.js
This commit is contained in:
parent
9c913cf2e5
commit
2ada1e3f08
@ -1,7 +1,7 @@
|
|||||||
module.exports = function msToTime(duration, format) {
|
module.exports = function msToTime(duration, format) {
|
||||||
var seconds = Math.floor((duration / 1000) % 60),
|
var seconds = Math.floor((duration / 1000) % 60),
|
||||||
minutes = Math.floor((duration / (1000 * 60)) % 60),
|
minutes = Math.floor((duration / (1000 * 60)) % 60),
|
||||||
hours = Math.floor((duration / (1000 * 60 * 60)) % 24);
|
hours = Math.floor((duration / (1000 * 60 * 60)) % 24),
|
||||||
days = Math.floor((duration / (1000 * 60 * 60 * 24)));
|
days = Math.floor((duration / (1000 * 60 * 60 * 24)));
|
||||||
|
|
||||||
days = (days < 10) ? "0" + days : days;
|
days = (days < 10) ? "0" + days : days;
|
||||||
|
Loading…
Reference in New Issue
Block a user