0

Feed Filter Bug
Moderators: adafruit_support_bill, adafruit

Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.
Please be positive and constructive with your questions and comments.

Feed Filter Bug

by iethis on Tue Dec 15, 2020 5:02 pm

I have seen this buried in some other topic and reported by a few people and then the subject changed....

Using the date pickers presented on a feed to filter by date range will cause a JS error which leaves the user with a black screen.

The date pickers are (not well supported) rendered by the browser (chrome) when the input type is datetime-local. The key there being local. The rest of the JS is hard coded to a en_us locale.... So I would expect anyone trying to use these filters with a locale that uses a non US format will have this issue.

Needs to retrieve locale and then use code for that locale.

Or, just give us the option to use text input and we can put in the dates in a specified format.

iethis
 
Posts: 2
Joined: Tue Jul 07, 2020 5:50 am

Re: Feed Filter Bug

by brubell on Wed Dec 16, 2020 11:29 am

Using the date pickers presented on a feed to filter by date range will cause a JS error which leaves the user with a black screen.


Could you please post a screenshot of this error?

brubell
 
Posts: 1192
Joined: Fri Jul 17, 2015 10:33 pm

Re: Feed Filter Bug

by iethis on Wed Dec 16, 2020 11:59 am

brubell wrote:Could you please post a screenshot of this error?


sure.

Clipboard01.jpg
Clipboard01.jpg (5.32 KiB) Viewed 94 times


:D

I guess the devtools output is more useful...

2.jpg
2.jpg (26.19 KiB) Viewed 94 times

iethis
 
Posts: 2
Joined: Tue Jul 07, 2020 5:50 am

Re: Feed Filter Bug

by brubell on Wed Dec 16, 2020 12:35 pm

Ok, thanks! I've filed a bug report internally for this issue and will update the topic when I have an update.

brubell
 
Posts: 1192
Joined: Fri Jul 17, 2015 10:33 pm

Please be positive and constructive with your questions and comments.