EasyUI Forum

General Category => EasyUI for React => Topic started by: chrwei on August 17, 2020, 07:43:02 AM



Title: calendarOptions validator not validating?
Post by: chrwei on August 17, 2020, 07:43:02 AM
I have this validator
Code:
calendarOptions={{
validator: (date) => {
let now = new Date();
let day90 = new Date(now.getFullYear(), now.getMonth(), now.getDate() + 90);
//converted to match database
let compday = new Date(date).toISOString();
return date <= day90 && listData.dateList.indexOf(compday) >= 0;
}
}}

I have one customer that this does not work for (all dates are not valid), with no errors on the console log.  I was able to verify that the array is actually populated, I'm adding a log inside the validator next to make sure that's running.  I'm also removing the 90 day check and building that into the date list instead.

are there any known Chrome extensions that might cause these sort of problems with EasyUI?


Title: Re: calendarOptions validator not validating?
Post by: chrwei on August 17, 2020, 11:32:50 AM
I've found they have a SonicWall, and it isn't reporting anything being filtered.


Title: Re: calendarOptions validator not validating?
Post by: chrwei on August 18, 2020, 07:01:36 AM
it was timezones.  javascript's date object is a real pain across timezones.