You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: