Thread Tools Display Modes
Old 06-06-2020, 09:32 AM
Old Mill Berko's Avatar
Old Mill Berko is offline
Junior Member
Join Date: Jun 2020
Posts: 2

"Order.ExtraFields" (used to capture Delivery Date/Time) - not Timezone aware !!

We use ecwid extraField variable to prompt for mandatory date/time when Shipping selected.

However when you display it on notification emails ... it is not TIME ZONE aware, and displays the UTC time. So in London, UK, currently displays 4pm instead of 5pm. That's obviously a massive problem if delivering hot food.

Current code is:

<#list order.extraFields as extraField>
<#if extraField.title?has_content && extraField.orderDisplaySection?has_content>
HOME DELIVERY: ${extraField.value}

Does anyone know how to format the scripted date/time field?

PS Would be great to also remove the seconds from the time at the same time.

Welcome any thoughts and feedback - thanks all.
Dan @ Ready4You

Last edited by Old Mill Berko; 06-06-2020 at 09:46 AM.

extra field, script issues, time zone

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT. The time now is 11:23 PM.
Powered by vBulletin® Version 3.8.11. Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.