Skip to content

Commit

Permalink
[bug] Add stub for license trial; Fix bug 70676
Browse files Browse the repository at this point in the history
  • Loading branch information
konovalovsergey committed Oct 6, 2024
1 parent 03be122 commit 43d30b2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions DocService/sources/utilsDocService.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 43d30b2

Please sign in to comment.