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));
|
||||
},
|
||||
toDate: function toDate(date: MomentInput, opts?: DateOptions): Date {
|
||||
const options = opts || {};
|
||||
this.init(options);
|
||||
toDate: function toDate(date: MomentInput): Date {
|
||||
return Moment.utc(date).toDate();
|
||||
},
|
||||
short: function short(date: MomentInput): string {
|
||||
|
Reference in New Issue
Block a user