#2 new

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:

  • Kopi Shop

    Kopi Shop August 18th, 2021 @ 07:46 AM

    Ah, siapa saja pasti senang bepergian dengan berkunjung ke sesuatu tempat yang eksotik serta mempesona, berkawan dengan warga di tempat dan belajar budaya yang ada pasti psikis membuat lebih sehat. https://hobi-unik.com/ Namun sebagian orang terkadang malas melakukan traveling karena keluarkan bayaran besar. Tetapi jika Kalian cukup cermat, hobi travelling dapat lho bagikan hasil yang besar dan jadi usaha menggiurkan.

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