Small fixes

Release commit
This commit is contained in:
RainLoop Team 2014-06-06 01:55:48 +04:00
parent eff7c17866
commit 187e44607d
6 changed files with 70 additions and 62 deletions

View file

@ -48,6 +48,10 @@ AdminLicensing.prototype.showActivationForm = function ()
*/
AdminLicensing.prototype.licenseExpiredMomentValue = function ()
{
var oDate = moment.unix(this.licenseExpired());
return oDate.format('LL') + ' (' + oDate.from(moment()) + ')';
var
iTime = this.licenseExpired(),
oDate = moment.unix(iTime)
;
return iTime && 1898625600 === iTime ? 'Never' : (oDate.format('LL') + ' (' + oDate.from(moment()) + ')');
};