mirror of
https://github.com/ONLYOFFICE/server.git
synced 2026-04-07 14:04:35 +08:00
[bug] Add stub for license trial; Fix bug 70676
This commit is contained in:
@ -125,6 +125,10 @@ async function notifyLicenseExpiration(ctx, endDate) {
|
||||
|
||||
const currentDate = new Date();
|
||||
if (currentDate.getTime() >= endDate.getTime() - cfgStartNotifyFrom) {
|
||||
//todo remove stub for "new Date(1)" and "setMonth + 1" in license.js; bug 70676
|
||||
if (endDate.getUTCFullYear() < 2000) {
|
||||
endDate = currentDate;
|
||||
}
|
||||
const formattedExpirationTime = humanFriendlyExpirationTime(endDate);
|
||||
if (endDate <= currentDate) {
|
||||
const tenNotificationRuleLicenseExpirationError = ctx.getCfg('notification.rules.licenseExpirationError.template.body', cfgNotificationRuleLicenseExpirationError);
|
||||
|
||||
Reference in New Issue
Block a user