Date Picker Adding the wrong date.

  • Posts: 18
  • Thank you received: 0
8 years 9 months ago #229858

-- HikaShop version -- : 2.6.1
-- 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.

Attachments:

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

  • Posts: 26159
  • Thank you received: 4028
  • MODERATOR
8 years 9 months ago #229859

Hi,

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.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 18
  • Thank you received: 0
8 years 9 months ago #229939

Thank you for your reply.

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.

  • Posts: 26159
  • Thank you received: 4028
  • MODERATOR
8 years 9 months ago #229942

Hi,

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.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 18
  • Thank you received: 0
8 years 9 months ago #230006

Thank you.

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.

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
8 years 9 months ago #230101

Hi,

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.

  • Posts: 18
  • Thank you received: 0
8 years 9 months ago #230112

Thank you very much.

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?

Attachments:

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

  • Posts: 26159
  • Thank you received: 4028
  • MODERATOR
8 years 9 months ago #230249

Hi,

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.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 18
  • Thank you received: 0
8 years 9 months ago #230279

Thank you for keep trying.

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.

  • Posts: 18
  • Thank you received: 0
8 years 9 months ago #230652

Hi,

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.

  • Posts: 13201
  • Thank you received: 2322
8 years 9 months ago #231328

Hi,

What should I be looking for when checking the timezone setting of the joomla configuration and the timezone of the web server?

You have to check that the timezones are the same one on your Joomla configuration and on your 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:

Activate setting "Set hour to 12:00 when processing time".

This allow some times to solve this issue, it avoid to have this difference for the hours changing the day.

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:
$value .= ' 12:00:00';
By another hour value to handle the lag.

ps: the option "Set hour to 12:00 when processing time" must be enabled.

Last edit: 8 years 9 months ago by Xavier.

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

  • Posts: 18
  • Thank you received: 0
8 years 9 months ago #231405

Making sure the web server and the Joomla system had the exact timezone plus Activate setting "Set hour to 12:00 when processing time". did the job.

Thank you very much!

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

Time to create page: 0.085 seconds
Powered by Kunena Forum