Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i18n Japanese date format cannot be filtered #3625

Open
CHEN-WEI-YU opened this issue May 10, 2023 · 0 comments
Open

i18n Japanese date format cannot be filtered #3625

CHEN-WEI-YU opened this issue May 10, 2023 · 0 comments

Comments

@CHEN-WEI-YU
Copy link

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.

@CHEN-WEI-YU CHEN-WEI-YU changed the title japanese date format cannot be filtered Japanese date format cannot be filtered May 10, 2023
@CHEN-WEI-YU CHEN-WEI-YU changed the title Japanese date format cannot be filtered i18n Japanese date format cannot be filtered May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant