From 468c63f584118cc9b5e2756ee42f4f204ffbc5b1 Mon Sep 17 00:00:00 2001 From: Shane McDonald Date: Wed, 11 May 2016 17:19:02 -0400 Subject: [PATCH] *Really* display correct expiration date on license page. calcDaysRemaining has recently been updated to return a string (`${duration} Days`) and calcExpiresOn was getting confused. This change feels a little hacky but it gets the job done. I'm open to other suggestions if anyone has them. --- awx/ui/client/src/license/license.controller.js | 1 + 1 file changed, 1 insertion(+) diff --git a/awx/ui/client/src/license/license.controller.js b/awx/ui/client/src/license/license.controller.js index 0a0eeaeb92..ee9bee730d 100644 --- a/awx/ui/client/src/license/license.controller.js +++ b/awx/ui/client/src/license/license.controller.js @@ -74,6 +74,7 @@ export default var calcExpiresOn = function(days){ // calculate the expiration date of the license + days = parseInt(days); return moment().add(days, 'days').calendar(); }; var init = function(){