#2 new
iain

Localizing Date, DateTime and Time

Reported by iain | August 10th, 2008 @ 12:04 AM

Instead of doing I18n.localize(time) it would be nice to alter Date(Time) to use its to_s function.

Proposed syntax:


  t = Time.now
  t.to_s(:long) # returnes localized version, if available

Comments and changes to this ticket

  • Sven Fuchs

    Sven Fuchs August 11th, 2008 @ 09:50 AM

    Hi Iain,

    I agree it would be nicer :)

    But I also think we should do this in a plugin for now. It certainly makes a good candidate for the second iteration of our "I18nize-Rails- dev-cycle" and it certainly seems like a small thing to add, but there seem to be so many small things to understand I feel that we should get together working solutions for Date/Time/Whatever formats before we add another API.

    IIRC there's been another ticket like this on Rails' Lighthouse which was rejected (or defered) with the same reasoning.

    On 10.08.2008, at 00:04, Lighthouse wrote:

  • Diana Zubiri

    Diana Zubiri June 2nd, 2020 @ 03:05 PM

    I don’t know about this matter, that’s why I want to thank you for letting us know about this matter! it makes me happy to know that there is a new topic that I knew from you, and I am hoping to learn more ideas and write a rush essay from your website as I know that you have more to show!

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Internationalization API for Ruby.

This library is used in Ruby on Rails but also suited for use in other contexts.

People watching this ticket

Pages