Magento reacts to Client time

Created by Nicole Le, Modified on Thu, 7 Dec, 2017 at 3:37 PM by Nicole Le

Question

Our client bought Order Delivery Date Magento 2 Module. Thanks for the good module!

Our QA partner found that the delivery date calendar on checkout reacts to the client time on his PC. So it is currently possible for a customer to set his computer time for 2 hours back and place an order for the next day delivery.


Answer:

To fix this issue to let Magento calendar use the timezone (as its config http://www.awesomescreenshot.com/09b6b4cbf5 ), could you please try to replace 2 js files of Magento by the attachments?

the paths are:

/lib/web/mage/calendar.js/

lib/web/jquery/jquery-ui.js


If you have any further question, please feel free to contact us.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article