diff --git a/mailpoet/assets/js/src/date.ts b/mailpoet/assets/js/src/date.ts index 65c8d0428e..7a3d575c60 100644 --- a/mailpoet/assets/js/src/date.ts +++ b/mailpoet/assets/js/src/date.ts @@ -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 {