View Single Post
  #1  
Old 06-06-2020, 09:32 AM
Old Mill Berko's Avatar
Old Mill Berko Old Mill Berko is offline
Junior Member
 
Join Date: Jun 2020
Posts: 2
Default "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}
</#if>
</#list>

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 https://boxmoorsteakhouse.ready4you.co.uk

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