Skip to content

Standard I18n formats parsing. #11

@Exoth

Description

@Exoth

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions