Commit 6eed47ff authored by Klaus-Dieter Quibeldey-Cirkel's avatar Klaus-Dieter Quibeldey-Cirkel 🏀

Update server/sendmail.js

parent 294561e0
......@@ -38,9 +38,9 @@ export class MailNotifier {
var active = Leitner.findOne({cardset_id: cardset._id, user_id: user_id, active: true});
var deadline = new Date(active.currentDate.getTime() + cardset.daysBeforeReset * 86400000);
if (deadline.getTime() > cardset.learningEnd.getTime() && Bonus.isInBonus(cardset._id, user_id)) {
return (TAPi18n.__('deadlinePrologue', null, Meteor.settings.mail.language) + moment(cardset.learningEnd).locale("de").format("LLlL") + TAPi18n.__('deadlineEpilogue1', null, Meteor.settings.mail.language));
return (TAPi18n.__('deadlinePrologue', null, Meteor.settings.mail.language) + moment(cardset.learningEnd).locale("de").format("dddd") + TAPi18n.__('deadlineEpilogue1', null, Meteor.settings.mail.language));
} else {
return (TAPi18n.__('mailNotification.textDate1', null, Meteor.settings.mail.language) + moment(deadline).locale("de").format("LLLL") + TAPi18n.__('mailNotification.textDate2', null, Meteor.settings.mail.language));
return (TAPi18n.__('mailNotification.textDate1', null, Meteor.settings.mail.language) + moment(deadline).locale("de").format("dddd") + TAPi18n.__('mailNotification.textDate2', null, Meteor.settings.mail.language));
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment