|
|
@ -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 |
|
|
|