- Posts: 18
- Thank you received: 0
Date Picker Adding the wrong date.
-- Joomla version -- : 3.4.8.
-- PHP version -- : 5.5.22
-- Browser(s) name and version -- : Firefox 44.0.2
Hello and thank you for your help in advance.
Some weird issue is happening all of the sudden. The date picker is not adding the right dates selected. For the month of February is working fine, the problem is with all the months after.
#1 The dates show fine on the product so you can select them.
#2 The date is selected fine and shows on the screen.
#3 When clicking "Add to cart" it adds the wrong date to the check-out page.
On this example I selected the 23rd on step one, it shows the 23rd on step 2, it adds the 22nd on step 3.
Please see the 3 images, they show what happens.
This s a "live" site, help is URGENT and very appreciated. Thank you very much.
Please Log in or Create an account to join the conversation.
You have a timezone issue with your server configuration.
Please activate the special setting in the plugin (in the Joomla side).
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
I just went to:
Joomla -> Global Configuration -> Server -> Local Settings... and changed the time zone from UTC (Universal time, coordinated) to "Mexico City" (Local time) but it did not correct the issue. Did I do something wrong?
Please Log in or Create an account to join the conversation.
Joomla > Extensions > Plugins.
Search : "Hikashop Date Picker Plugin"
Activate setting "Set hour to 12:00 when processing time".
Save the plugin configuration.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
When I do that it makes an error "Incorrect date for the field 'Day of Tour'" and it doesn't allow me to select the dates.
(The tours is available only Wednesdays and Saturdays)
Is there another setting I have to modify as well?
Please Log in or Create an account to join the conversation.
Can you provide a screenshot of the settings of your custom field ?
Please follow the steps here:
www.take-a-screenshot.org/
Can you also check the timezone setting of the joomla configuration and the timezone of your web server (you might need to contact your hosting company) ?
Please Log in or Create an account to join the conversation.
Here is the screen print.
What should I be looking for when checking the timezone setting of the joomla configuration and the timezone of the web server?
Please Log in or Create an account to join the conversation.
I just perform a test in your website and I am able to select an authorize date.
pasteboard.co/1Bj3tYEA.png
So I am not able to reproduce your issue in your website.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
As i mentioned on the initial post, it only shows the error after March. Not in February. I just did another check-up and it made the error just like the screen prints I sent at the beginning.
If you try to select "March 23" you sill see that "March 22 is added to the cart.
Do you need admin access?
Please Log in or Create an account to join the conversation.
Did you try to reproduce the issue on a later month? (Not February) That is where the issue is.
Thank you for your time, is appreciated.
Please Log in or Create an account to join the conversation.
You have to check that the timezones are the same one on your Joomla configuration and on your server.What should I be looking for when checking the timezone setting of the joomla configuration and the timezone of the web server?
This can be causing your issue, if you select a day so with the timestamp based on that day at midnight and you don't have the same timezones so it can take into account the previous day.
That's why we asked to:
This allow some times to solve this issue, it avoid to have this difference for the hours changing the day.Activate setting "Set hour to 12:00 when processing time".
I was not able to reproduce your issue of "incorrect date...", but this is maybe happening because it changing the day with that lag.
So a solution could be to try to edit the file "plugins/hikashop/datepickerfield/datepickerfield_class.php" and in the function "getTimestamp()" replace the line:
ps: the option "Set hour to 12:00 when processing time" must be enabled.
Please Log in or Create an account to join the conversation.
Thank you very much!
Please Log in or Create an account to join the conversation.