mirror of
https://github.com/ansible/awx.git
synced 2026-03-17 08:57:33 -02:30
Fixed display of license time remaining value.
This commit is contained in:
@@ -76,7 +76,7 @@ angular.module('License', ['RestServices', 'Utilities', 'FormGenerator', 'Prompt
|
|||||||
if (scope.license_date) {
|
if (scope.license_date) {
|
||||||
dt = new Date(parseInt(scope.license_date, 10) * 1000);
|
dt = new Date(parseInt(scope.license_date, 10) * 1000);
|
||||||
scope.license_date = FormatDate(dt);
|
scope.license_date = FormatDate(dt);
|
||||||
|
scope.time_remaining = scope.time_remaining * 1000;
|
||||||
days = parseInt(scope.time_remaining / 86400000, 10);
|
days = parseInt(scope.time_remaining / 86400000, 10);
|
||||||
remainder = scope.time_remaining - (days * 86400000);
|
remainder = scope.time_remaining - (days * 86400000);
|
||||||
hours = parseInt(remainder / 3600000, 10);
|
hours = parseInt(remainder / 3600000, 10);
|
||||||
|
|||||||
Reference in New Issue
Block a user