railsadminteam / rails_admin

RailsAdmin is a Rails engine that provides an easy-to-use interface for managing your data
MIT License
7.87k stars 2.25k forks source link

i18n Japanese date format cannot be filtered #3625

Open CHEN-WEI-YU opened 1 year ago

CHEN-WEI-YU commented 1 year ago

Describe the bug It seems that i18n use the long format, which is "%Y年%m月%d日(%a)", to show in the table list. When filtering, it deliver by this format and cannot search from database

  config.model "model_name" do
    configure :date_field_name do
      strftime_format "%Y-%m-%d"
    end
  end

I do this to let filter work, but it will display the column in this format too.

Reproduction steps Use datepicker to pick a date on date field to filter, but not working.

Expected behavior Show the list date field column in i18n long format, but deliver by iso8601 when filtering will be better.