Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Brasilia Timezone

#1180

Hi,

Brasilia timezone is wrongly set in active_support/values/time_zone.rb.

Where it is set:

"Brasilia" => "America/Argentina/Buenos_Aires"

it should be

"Brasilia" => "America/Sao_Paulo"

Thanks Marcus

Reported by Marcus Derencius · October 6th, 2008 @ 08:16 PM

State: resolved
Milestone: none
Assigned to: Geoff Buesing Geoff Buesing
Importance: none

Activity

  1. Leonardo Pinheiro
    Leonardo Pinheiro

    I suggest this patch be put on 2.1.2.

    October 8th, 2008 @ 07:24 PM

  2. Kane
    Kane

    this patch also needs to add the sao paulo definition to active_support\vendor\tzinfo

    October 9th, 2008 @ 11:11 PM

  3. Marcus Derencius
    Marcus Derencius

    Here is the patch including Sao_Paulo.rb definition sent my Kane.

    Kane, If you want, you can edit the patch and define your email as the author of Sao_Paulo.rb file. Fell free.

    October 10th, 2008 @ 02:38 PM

  4. Marcus Derencius
  5. Pratik
    Pratik
    • Assigned user set to Geoff Buesing
    • Milestone cleared.

    Oops. Could you please submit a patch to tzinfo project ? Rails doesn't really tend to monkey patch vendored gems. And the tzinfo maintainer Philip Ross has been very prompt in my experience.

    Once it gets committed to tzinfo, we could bump up the vendored version in Rails and apply this patch.

    Thanks!

    October 14th, 2008 @ 01:32 PM

  6. Pratik
  7. Geoff Buesing
    Geoff Buesing

    As I understand it, this patch doesn't actually change TzInfo -- it just points the ActiveSupport::TimeZone['Brasilia'] instance to TzInfo's existing "America/Sao_Paulo" definition instead of the "America/Argentina/Buenos_Aires" definition.

    (Fyi, the version of TzInfo bundled in ActiveSupport includes a subset of the zones included in the TzInfo gem.)

    Could the authors of this patch confirm that the included time zone definition is pulled straight from TzInfo without any changes?

    October 14th, 2008 @ 02:38 PM

  8. Kane
    Kane

    hi Sao_Paulo.rb is directly from tzinfo 0.3.11

    i suggest to commit the first patch from marcus derencius and to update the bundled tzinfo to 0.3.11 and include the nessecary definitions.

    October 14th, 2008 @ 04:36 PM

  9. Geoff Buesing
  10. Pratik
    Pratik

    Makes sense. Thanks for the info!

    October 17th, 2008 @ 10:45 PM

  11. Repository
    Repository
    • State changed from new to resolved

    (from [4a256d7769306a07beab936fd01c95ae621c9984]) Fix Brasilia timezone. [#1180 Brasilia Timezone state:resolved] http://github.com/rails/rails/co...

    October 17th, 2008 @ 10:46 PM

  12. Repository
    Repository

    (from [18e7bf28655cfd9253239963256609edb9fa5a53]) Fix Brasilia timezone. [#1180 Brasilia Timezone state:resolved] http://github.com/rails/rails/co...

    October 17th, 2008 @ 10:46 PM

  13. Marcus Derencius