Dashboard date filters "Between" are not following the configured language and datetime format

Dashboard date filters "Between" are not following the configured language and datetime format setting.

Example:
Metabase version: 0.40.2
Connected Metabase in MySQL 8
Language: Portuguese (Brazil)
Datetime format: D/M/YYYY

In the "setting" table of the metabase database there are these records:

site-locale: pt_BR

custom-formatting: {"type/DateTime":{"time_style":"k:mm"},"type/Number":{"number_separators":", "},"type/Currency":{"currency": "BRL"},"type/Temporal":{"date_separator":"/","time_style":"HH:mm","date_abbreviate":false,"date_style":"D/M/YYYY"}}

Below are some prints:

Hi @rafaelagende
You're seeing these two issues - upvote by clicking :+1: on the first post of each issue:
https://github.com/metabase/metabase/issues/9151
https://github.com/metabase/metabase/issues/8964