diff --git a/mailpoet/assets/js/src/global.d.ts b/mailpoet/assets/js/src/global.d.ts index cc2f0caca4..e945e639ea 100644 --- a/mailpoet/assets/js/src/global.d.ts +++ b/mailpoet/assets/js/src/global.d.ts @@ -147,7 +147,6 @@ interface Window { mailpoet_current_date?: string; mailpoet_tomorrow_date?: string; mailpoet_schedule_time_of_day?: string; - mailpoet_date_display_format?: string; mailpoet_date_storage_format?: string; mailpoet_current_date_time?: string; mailpoet_urls: Record; diff --git a/mailpoet/assets/js/src/newsletters/send/standard.tsx b/mailpoet/assets/js/src/newsletters/send/standard.tsx index 986817e0e9..035e5b18ce 100644 --- a/mailpoet/assets/js/src/newsletters/send/standard.tsx +++ b/mailpoet/assets/js/src/newsletters/send/standard.tsx @@ -15,7 +15,7 @@ import { Field } from '../../form/types'; const currentTime = window.mailpoet_current_time || '00:00'; const tomorrowDateTime = `${window.mailpoet_tomorrow_date} 08:00:00`; const timeOfDayItems = window.mailpoet_schedule_time_of_day; -const dateDisplayFormat = window.mailpoet_date_display_format; +const dateDisplayFormat = window.mailpoet_date_format; const dateStorageFormat = window.mailpoet_date_storage_format; type StandardSchedulingProps = { diff --git a/mailpoet/views/newsletters.html b/mailpoet/views/newsletters.html index 0cffed6ed6..894ecdff1b 100644 --- a/mailpoet/views/newsletters.html +++ b/mailpoet/views/newsletters.html @@ -19,7 +19,6 @@ var mailpoet_current_time = <%= json_encode(current_time) %>; var mailpoet_current_date_time = <%= json_encode(current_date_time) %>; var mailpoet_schedule_time_of_day = <%= json_encode(schedule_time_of_day) %>; - var mailpoet_date_display_format = "<%= wp_datetime_format()|escape('js') %>"; var mailpoet_date_storage_format = "Y-m-d"; var mailpoet_product_categories = <%= json_encode(product_categories) %>; var mailpoet_products = <%= json_encode(products) %>;