Skip to main content

Problems with advanced date picker

More
10 years 2 weeks ago #250242 by Keks-Store
-- HikaShop version -- : 2.6.4
-- Joomla version -- : 3.6.2

Hello, I use an additional field Advanced date Picker. I can not choose when editing the order day of the week Monday. On the calendar selection occurs, but remains while maintaining Monday. Enclosed screen module settings.
Information to access the admin sent indicating this topic.

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

More
10 years 2 weeks ago #250294 by Jerome
Hi,

I'm sorry but I don't understand what you're talking about.
Your "advanced date picker" configuration indicates that you have forbidden "Sunday" and the display of your calendar is according to that configuration.
There is nothing in your configuration which indicates that "Monday" shouldn't be available.

Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

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

More
10 years 2 weeks ago - 10 years 2 weeks ago #250370 by Keks-Store
I can not pick on Monday. To be more precise selection can not save the day like Monday. If necessary I date falls on a Monday, I can not save her.
Last edit: 10 years 2 weeks ago by Keks-Store. Reason: add info

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

More
10 years 2 weeks ago #250558 by nicolas
Hi,

I suppose that the problem is linked to the timezones configuration on your server and/or your website and/or your user account.
So I would recommend to check them, and try changing the "Set hour to noon when processing time" setting of the HikaShop date picker plugin.

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

More
10 years 1 week ago #250567 by Keks-Store
Hi, I checked the settings Joomla time zone is set to Krasnoyarsk, as it should be. The setting "set hour to noon when processing time" is also changed in the plugin does not help. Oh, and when to use for the additional fields are not advanced date picker, and the usual , the problems with the choice of Monday do not arise.

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

More
10 years 1 week ago #250568 by nicolas
Hi,

So how about the timezone setting of your admin user ? Of your web server ? How are they configured ?

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

More
10 years 1 week ago #250620 by Keks-Store
Timezone setting of my admin user is set to Krasnoyarsk too.
Timezone of my web server is set to Asia/Krasnoyarsk

Screenshots add

Like all time zone settings are identical, such that must be for my time zone.

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

More
10 years 1 week ago #250668 by nicolas
Hi,

Ok, then try changing the line:
$value .= ' 12:00:00';
to:
$value .= ' -12:00:00';
in the file plugins/hikashop/datepickerfield/datepickerfield_class.php

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

More
10 years 1 week ago #250679 by Keks-Store
Changed, but now will not let me in the admin section in the order. I returned to the settings in the date picker plugin. See Ordering restore access, but the problem persists, Monday does not choose.

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

More
10 years 1 week ago #250926 by Keks-Store
Hi,
So what else can be the problem?

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

More
10 years 1 week ago #250996 by Jerome
Hi,

In the file, you will find that code
Code:
$timestamp = $this->getTimestamp($dateValue); $phpDate = getdate($timestamp); if($phpDate['hours'] != 0) { $timestamp -= $this->timeoffset; $phpDate = getdate($timestamp); } $wday = $phpDate['wday'];
The check for the "hours" is there to handle the issues with the timezone ; because the timestamp is converted into an array in order to extract some information (like the week day).
You can see the add the timeoffset instead
Code:
$timestamp += $this->timeoffset;
in order to see if it gave you a better week day. But it is complicated to perform some debug while we are not able to reproduce the issue and get details about the returned data (like the result $phpDate content).

Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
The following user(s) said Thank You: Keks-Store

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

More
10 years 3 days ago #251319 by Keks-Store
Thank you, finally solved the problem!

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

More
9 years 10 months ago #254595 by Keks-Store
Hello, when i update hikashop problem persists. Perhaps to correct the plug-in file, it was not necessary each time to manually make changes?
Code:
$value .= ' -12:00:00';

and
Code:
$timestamp += $this->timeoffset;

in the file plugins/hikashop/datepickerfield/datepickerfield_class.php

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

More
9 years 10 months ago #254598 by nicolas
Hi,

As we weren't able to reproduce the problem, we couldn't add a fix for that.
So it's normal that you still have the problem when you update.
Were both changes necessary for the problem to be fixed on your end ?

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

More
9 years 10 months ago #254683 by Keks-Store

nicolas wrote: Hi,

Were both changes necessary for the problem to be fixed on your end ?


I have made both changes.

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

More
9 years 10 months ago #254711 by nicolas
So if you do only one of them does it work in either case ?

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

Time to create page: 0.272 seconds
Powered by Kunena Forum