邵佳豪 3 years ago
parent
commit
645fae9079
  1. 4
      src/app/pages/license/update-category/edit-update-category/edit-update-category.component.ts

4
src/app/pages/license/update-category/edit-update-category/edit-update-category.component.ts

@ -72,7 +72,7 @@ export class EditUpdateCategoryComponent implements OnInit {
if (time <= 0) { if (time <= 0) {
this.data2.validityDays = 0 this.data2.validityDays = 0
} else { } else {
this.data2.validityDays = time / (1000*3600*24); this.data2.validityDays = Math.floor(time / (1000*3600*24));
} }
} }
} }
@ -89,7 +89,7 @@ export class EditUpdateCategoryComponent implements OnInit {
if (time <= 0) { if (time <= 0) {
this.data2.validityDays = 0 this.data2.validityDays = 0
} else { } else {
this.data2.validityDays = time / (1000*3600*24); this.data2.validityDays = Math.floor(time / (1000*3600*24));
} }
} else { } else {
this.data2.validityDays = 999 this.data2.validityDays = 999

Loading…
Cancel
Save