From 6cb51a3841da873b973f70ffa6ae54fd3c52f2ba Mon Sep 17 00:00:00 2001 From: Rostislav Wolny Date: Fri, 23 Aug 2024 13:49:32 +0200 Subject: [PATCH] Remove unused parameters in MailPoet.date.toDate The options were just set in init but there was no effect. [MAILPOET-6197] --- mailpoet/assets/js/src/date.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 {