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:
@@ -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 {
|
||||||
|
Reference in New Issue
Block a user