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

Standard I18n formats parsing. #11

Open
Exoth opened this issue Aug 19, 2013 · 0 comments
Open

Standard I18n formats parsing. #11

Exoth opened this issue Aug 19, 2013 · 0 comments

Comments

@Exoth
Copy link

Exoth commented Aug 19, 2013

I think that for every locale this code should return true:

>> I18n.l(Date.new(2013,1,2), format: :long).to_date == Date.new(2013,1,2)

but it just gives an error even for :en locale ("January 02, 2013"):

NoMethodError: undefined method `map' for nil:NilClass

whilst even the standard parser successfully parses the format for :en locale.

So the current standard I18n date formats should be automatically added to the timeliness formats. How do you think?

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