Problems with advanced date picker

  • Posts: 95
  • Thank you received: 0
8 years 2 months ago #250242

-- 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.

Attachments:

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
8 years 2 months ago #250294

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.

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: 95
  • Thank you received: 0
8 years 2 months ago #250370

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: 8 years 2 months ago by Keks-Store. Reason: add info

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

  • Posts: 82867
  • Thank you received: 13373
  • MODERATOR
8 years 2 months ago #250558

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.

  • Posts: 95
  • Thank you received: 0
8 years 2 months ago #250567

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.

  • Posts: 82867
  • Thank you received: 13373
  • MODERATOR
8 years 2 months ago #250568

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.

  • Posts: 95
  • Thank you received: 0
8 years 2 months ago #250620

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.

Attachments:

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

  • Posts: 82867
  • Thank you received: 13373
  • MODERATOR
8 years 2 months ago #250668

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.

  • Posts: 95
  • Thank you received: 0
8 years 2 months ago #250679

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.

Attachments:

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

  • Posts: 95
  • Thank you received: 0
8 years 1 month ago #250926

Hi,
So what else can be the problem?

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
8 years 1 month ago #250996

Hi,

In the file, you will find that 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
$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.

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.
The following user(s) said Thank You: Keks-Store

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

  • Posts: 95
  • Thank you received: 0
8 years 1 month ago #251319

Thank you, finally solved the problem!

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

  • Posts: 95
  • Thank you received: 0
8 years 2 weeks ago #254595

Hello, when i update hikashop problem persists. Perhaps to correct the plug-in file, it was not necessary each time to manually make changes?

$value .= ' -12:00:00';

and
$timestamp += $this->timeoffset;

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

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

  • Posts: 82867
  • Thank you received: 13373
  • MODERATOR
8 years 2 weeks ago #254598

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.

  • Posts: 95
  • Thank you received: 0
8 years 2 weeks ago #254683

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.

  • Posts: 82867
  • Thank you received: 13373
  • MODERATOR
8 years 2 weeks ago #254711

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.091 seconds
Powered by Kunena Forum