Magento – Order Confirmation email: How to get order date with correct store timezone

email-templatesmagento2order-emailtimezone

If I include the order date in my order confirmation email template via …

Order Date: {{var order.created_at}}

…, the resulting order confirmation emails contain the order date in UTC/GMT time. I would prefer the date to be shown in the timezone configured for the store. How to do that?

Best Answer

The Timezones are configured par website and not per storeview, so you can set them for the website who contain all the storeviews.

Admin > Stores > Configuration > General > Locale Options > Timezone > GMT (UTC)

Related Topic