From e821d82ac2615ae708b1c54d3fcf606f13f28b33 Mon Sep 17 00:00:00 2001 From: Eric Reed Date: Thu, 14 Mar 2013 14:14:12 -0400 Subject: [PATCH] fix #57 --- MediaBrowser.WebDashboard/Html/scripts/AddPluginPage.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MediaBrowser.WebDashboard/Html/scripts/AddPluginPage.js b/MediaBrowser.WebDashboard/Html/scripts/AddPluginPage.js index 8b45747bbf..24f7581e9c 100644 --- a/MediaBrowser.WebDashboard/Html/scripts/AddPluginPage.js +++ b/MediaBrowser.WebDashboard/Html/scripts/AddPluginPage.js @@ -52,8 +52,8 @@ if (new Date(pkg.expDate).getTime() < new Date(1970, 1, 1).getTime()) { regStatus += "This feature has no registration information"; } else { - if (pkg.expDate <= new Date().getTime()) { - regStatus += "The trial period for this feature has expired on this machine"; + if (new Date(pkg.expDate).getTime() <= new Date().getTime()) { + regStatus += "The trial period for this feature has expired"; } else { regStatus += "The trial period for this feature will expire in " + Math.round((new Date(pkg.expDate).getTime() - new Date().getTime()) / (86400000)) + " day(s)"; }