Skip to content

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

Merged
bbenezech merged 1 commit into
railsadminteam:masterfrom
ivanzotov:fix_delocalize
Feb 4, 2016
Merged

Fix delocalize strftime_format for DateTime.strptime to support minus#2547
bbenezech merged 1 commit into
railsadminteam:masterfrom
ivanzotov:fix_delocalize

Conversation

@ivanzotov
Copy link
Copy Markdown
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
Copy Markdown
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.

2 participants