mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-28 11:39:21 +03:00
Momentor (moment optimization)
This commit is contained in:
parent
7750587be1
commit
147dce6e4a
20 changed files with 331 additions and 173 deletions
|
|
@ -5,7 +5,6 @@
|
|||
|
||||
var
|
||||
ko = require('ko'),
|
||||
moment = require('moment'),
|
||||
|
||||
Settings = require('Storage/Settings'),
|
||||
LicenseStore = require('Stores/Admin/License')
|
||||
|
|
@ -71,12 +70,13 @@
|
|||
LicensingAdminSettings.prototype.licenseExpiredMomentValue = function ()
|
||||
{
|
||||
var
|
||||
moment = require('moment'),
|
||||
iTime = this.licenseExpired(),
|
||||
oDate = moment.unix(iTime)
|
||||
oM = moment.unix(iTime)
|
||||
;
|
||||
|
||||
return this.licenseIsUnlim() ? 'Never' :
|
||||
(iTime && (oDate.format('LL') + ' (' + oDate.from(moment()) + ')'));
|
||||
(iTime && (oM.format('LL') + ' (' + oM.from(moment()) + ')'));
|
||||
};
|
||||
|
||||
module.exports = LicensingAdminSettings;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue