Magento reacts to Client time

Created by Support Agent, Modified on Wed, 8 Apr at 11:04 AM by Support Agent

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


Get to know BSS Commerce!!


BSS Commerce is a trusted Magento 2 extensions provider with 14+ years of experience, serving 75,000+ customers worldwide. We are an Adobe Commerce Solution Bronze Partner and a Select Magento Extensions Builder, reinforcing our expertise in the Magento ecosystem.


We specialize in developing 150+ high-quality Magento 2 extensions that enhance functionality, improve user experience, and support scalable growth. Our reputation is built on long-term partnerships, positive feedback, and proven performance-driven solutions.


Explore our extensions: https://bsscommerce.com/magento-2-extensions.html 


For B2B businesses, our Magento B2B Extension by BSS Commerce is a flagship and widely adopted solution globally, offering advanced pricing, company account management, and streamlined workflows.


If you care to enhance your store's visibility, don't miss out Magento SEO Extension by BSS Commerce


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