Ruby on Rails Wednesday, August 21, 2013

On 20 August 2013 21:06, Philip Edelbrock <phil@edgedesign.us> wrote:
>
> On Aug 20, 2013, at 7:57 AM, Hassan Schroeder <hassan.schroeder@gmail.com> wrote:
>
>>
>> In the source for e.g. ruby-1.9.3-p448 see ./doc/NEWS-1.9.1:
>>
>> o Time.parse and Date.parse interprets slashed numerical dates·
>> as "dd/mm/yyyy".
>>
>
> Well, back to basics, my question is simple:
>
> How do I tell Rails to use a custom date/time format without it blowing up?

The american_date gem may help [1]

Colin

[1] https://github.com/jeremyevans/ruby-american_date

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLuUpB%3DoqtTeTn6wF375Lqog8%2BLnRq-6o_5tLwpLfXQD1w%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment