Custom field with advanced data selector showing the previous day

  • Posts: 267
  • Thank you received: 5
2 years 5 months ago #344273

-- HikaShop version -- : 4.6.1
-- Joomla version -- : 4.2.1
-- PHP version -- : 8

Hello and happy summer, I have a custom field in products to select a date, but in some cases you select a certain date, but when you click save, it is modified and the previous day is selected. I am sending a screenshot of the configuration.

A cordial greeting!

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 83338
  • Thank you received: 13477
  • MODERATOR
2 years 5 months ago #344292

Hi,

This indicates a problem with the timezone. First, check that your website timezone (in the joomla configuration) is correct, that your PHP timezone is correct (in your php.ini) and that your joomla user timezone is also correct (in the settings of the user in the joomla user manager).
Finally, in the settings of the HikaShop date picker field plugin in the Joomla plugins manager, there is a setting to use noon instead of midnight when a day is selected. That way, even if there is a timezone issue, as long as it is less than 12 hours, it should still display the correct date.

The following user(s) said Thank You: dvddvd

Please Log in or Create an account to join the conversation.

Time to create page: 0.063 seconds
Powered by Kunena Forum