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) {
unit = 'Minutes';
time = time / 60;
if (time % 60 == 0) {
unit = 'Hours';
time = time / 60;
if (time % 24 == 0) {
unit = 'Days';
}
}
}
if (time % 60 == 0) {
unit = 'Hours';
time = time / 60;
}
if (time % 24 == 0) {
unit = 'Days'
time = time / 24;
}
return unit;
}
@ -1642,14 +1642,14 @@ module.factory('TimeUnit2', function() {
if (time % 60 == 0) {
unit = 'Minutes';
time = time / 60;
}
if (time % 60 == 0) {
unit = 'Hours';
time = time / 60;
}
if (time % 24 == 0) {
unit = 'Days'
time = time / 24;
if (time % 60 == 0) {
unit = 'Hours';
time = time / 60;
if (time % 24 == 0) {
unit = 'Days';
time = time / 24;
}
}
}
}
}