PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

Other bugs with date picker

The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page please
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.

Hello

2 and a half issues.

 

1/
If Auto submit is OFF
Filtering by a date submits the form (this is not supposed to happen) and without any result. This is a bug...

If another filter is set first and searched for, then filtering by a date works
But in that case, you have to"close" the calendar after picking a date. It would be better that picking a date on the calendar closes the calendar.

I do not have time to debug all this by myself.

2/ datepicker.js

First error

var date = new Date(parseInt(self.currentYear, 10), parseInt(self.currentMonth, 10), parseInt(self.currentDay, 10), 23, 59, 59);

sets a date at 22:59:59 and not 23:59:59 so the last hour of the day is missed.

Second error
For a"to date", the previous date is OK when corrected

But for a"from date" it is wrong,  you need another date that I have setup in the file:

var date1 = new Date(parseInt(self.currentYear, 10), parseInt(self.currentMonth, 10), parseInt(self.currentDay, 10), 01, 00, 00);

which sets the time at 00:00:00

Then you use each date, one in the"to" query, one for the"from" query

 

For my own usage, there is still something annoying. The search seems to be done with a >"from date" and not with a >= 

So with my product with a time at 00:00:00 the products of the first day were not found.

So.... I found a workaround by setting by products at time 00:00:01

Kind regards
Thierry

Hello Thierry

I will pass this to the developers

Hello Thierry

Please  delete  file - datepicker.js  -  and  paste  new  file - https://drive.google.com/open?id=1VcL-bAvDBwkXfvPSfcFfDxoeG51AJpCh

do  test  please

Hi

Sorry for being so late to answer, very busy currently.

I did not use you new datepicker.js because (tested on 2 different servers) the time you define appear to be"day before 23:01" for the starting date (and not 00:01) and 22:59 for the end date (and not 23:59).

Frankly speaking I not know if there is something wrong on the 2 servers where I tested or if there is something wrong in your datepicker.

In a while, I will do some tests on a sandbox website to verify all this.

Best and kind regards
Thierry

Hello Thierry

It looks like a problem with time zones