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

Fix delocalize strftime_format for DateTime.strptime to support minus #2547

Merged
merged 1 commit into from
Feb 4, 2016

Conversation

ivanzotov
Copy link
Contributor

DateTime.strprime can't parse formats that have '%-d' (https://github.com/svenfuchs/rails-i18n/search?utf8=%E2%9C%93&q=%25-d). So parse_string method returns nil and date field isn't saved correctly. I guess most users just overwrite date format to make rails_admin works properly, but this small fix let rails_admin works out of the box.

@bbenezech
Copy link
Collaborator

Sounds good, thanks!

bbenezech added a commit that referenced this pull request Feb 4, 2016
Fix delocalize strftime_format for DateTime.strptime to support minus
@bbenezech bbenezech merged commit 10c6ba6 into railsadminteam:master Feb 4, 2016
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

Successfully merging this pull request may close these issues.

None yet

2 participants