This commit is contained in:
Yoshiyuki Tabata 2022-01-11 11:56:07 +09:00 committed by Hynek Mlnařík
parent 8c5e158db4
commit 1ff558bd9e

View file

@ -1589,15 +1589,15 @@ module.factory('TimeUnit', function() {
if (time % 60 == 0) { if (time % 60 == 0) {
unit = 'Minutes'; unit = 'Minutes';
time = time / 60; time = time / 60;
}
if (time % 60 == 0) { if (time % 60 == 0) {
unit = 'Hours'; unit = 'Hours';
time = time / 60; time = time / 60;
}
if (time % 24 == 0) { if (time % 24 == 0) {
unit = 'Days' unit = 'Days';
time = time / 24;
} }
}
}
return unit; return unit;
} }
@ -1642,17 +1642,17 @@ module.factory('TimeUnit2', function() {
if (time % 60 == 0) { if (time % 60 == 0) {
unit = 'Minutes'; unit = 'Minutes';
time = time / 60; time = time / 60;
}
if (time % 60 == 0) { if (time % 60 == 0) {
unit = 'Hours'; unit = 'Hours';
time = time / 60; time = time / 60;
}
if (time % 24 == 0) { if (time % 24 == 0) {
unit = 'Days' unit = 'Days';
time = time / 24; time = time / 24;
} }
} }
} }
}
}
var v = { var v = {
unit: unit, unit: unit,