Skip to content

Converted dates are converted to string on parse #40

@fmluizao

Description

@fmluizao

I18n::Alchemy::DateParser.parse("07/07/2015")
=> "2015-07-07"

From I18n::Alchemy::DateParser#parse, we have:

build_object(parsed_date).to_s

Why we need to convert the date back to string? I think it's better just return the Date object. ActiveRecord will not complain, and the parser would be more generic.

Thoughts?

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