The information in this thread might be outdated
If the solution did not help, please, check our Help Portal or contact Ecwid Team.
 
 
Thread Tools Display Modes
  #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.
 
The information in this thread might be outdated
If the solution did not help, please, check our Help Portal or contact Ecwid Team.

Tags
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 08:33 PM.
Powered by vBulletin® Version 3.8.11. Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.