How time zone support will work in Rails 2.1

Posted by David April 12, 2008 @ 03:33 AM

Geoff Buesing has writing a great guide to the time zone support in Rails 2.1. It goes through all the new features including how to setup per-user time zone support and more. Really good stuff. Geoff’s work will remove a lot of pain for a lot of people. Three cheers to his hard work.

Posted in Documentation | 12 comments

Comments

  1. Wagner on 12 Apr 04:49:

    Will I be able to set my own DST periods?

  2. 有颜色的猫 on 12 Apr 10:20:

    when rails 2.1 will be release ?

  3. Geoff Buesing on 12 Apr 21:57:

    @wagner: we’re leveraging the TZInfo library, which is kept up-to-date with the latest DST rules, so there shouldn’t be any need to set your own.

  4. Luis Alejandro Masanti on 13 Apr 00:19:

    quote: ”@wagner: we’re leveraging the TZInfo library, which is kept up-to-date with the latest DST rules, so there shouldn’t be any need to set your own.”

    What for other countries? Argentina has a year-by-year modified DST.

  5. Geoff Buesing on 13 Apr 02:09:

    Luis: TZInfo gets its data from the tz database—it’s updated frequently. Here’s a list of the zones it covers: http://twiki.org/cgi-bin/xtra/tzdatepick.html

  6. Christian on 13 Apr 13:57:

    yeah thats great, i wrote a little hack for my sites but now :D

  7. Petra on 14 Apr 14:14:

    Good Job Geoff :)

  8. google on 14 Apr 14:16:

    Google

  9. Trevor Turk on 15 Apr 01:37:

    Hip-hip hooray for this. Thanks again! :)

  10. www.jack-russell-terriershome.de on 15 Apr 12:19:

    Thanks …

  11. alex on 17 Apr 20:00:

    It’s great, but what about helpers? In many places Time.now used instead of Time.zone.now:

    date_helper.rb

    def time_ago_in_words(from_time, include_seconds = false) distance_of_time_in_words(from_time, Time.now, include_seconds) end

  12. Cancan on 27 Apr 20:39:

    When will be rails 2.1 release ?