Remove unused parameters in MailPoet.date.toDate

The options were just set in init but there was no effect.
[MAILPOET-6197]
This commit is contained in:
Rostislav Wolny
2024-08-23 13:49:32 +02:00
parent 122f73c3c2
commit 6cb51a3841

View File

@@ -69,9 +69,7 @@ export const MailPoetDate: {
} }
return momentDate.format(this.convertFormat(this.options.format)); return momentDate.format(this.convertFormat(this.options.format));
}, },
toDate: function toDate(date: MomentInput, opts?: DateOptions): Date { toDate: function toDate(date: MomentInput): Date {
const options = opts || {};
this.init(options);
return Moment.utc(date).toDate(); return Moment.utc(date).toDate();
}, },
short: function short(date: MomentInput): string { short: function short(date: MomentInput): string {