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.

Buenos Aires GMT offset changed to -2:00

#1366

Buenos Aires GMT offset changed to -2:00, and it will stay that way until March 2009.

Reported by Emilio Tagua · November 13th, 2008 @ 12:49 PM

State: invalid
Milestone: 2.x
Assigned to: Geoff Buesing Geoff Buesing
Importance: none

Activity

  1. Geoff Buesing
    Geoff Buesing
    • State changed from new to invalid
    • Tag set to activesupport, patch, timezone

    According to the latest version of TZInfo, the non-dst utc offset for Buenos Aires was -10800 (i.e., -03:00) in 2008, and will be the same in 2009.

    Please reopen if I'm missing something here.

    November 13th, 2008 @ 02:35 PM

  2. Emilio Tagua
    Emilio Tagua

    If you select Buenos Aires as timezone right now, the offset used is -7200, i had to monkey patch this on my apps to show the valid offset when returning tz 'Buenos Aires'.

    The offset has been changed a couple of weeks ago and as i said it will be -0200 until March 2009.

    Check this out:

    
    >> Time.now.in_time_zone 'Buenos Aires'
    => Thu, 13 Nov 2008 12:40:48 ARST -02:00
    

    November 13th, 2008 @ 02:42 PM

  3. Geoff Buesing
    Geoff Buesing

    That's because Buenos Aires is observing daylight savings time:

    
    >> Time.zone = 'Buenos Aires'
    => "Buenos Aires"
    >> Time.zone.now
    => Thu, 13 Nov 2008 13:08:59 ARST -02:00
    >> Time.zone.now.dst?
    => true
    >> t2 = Time.zone.now + 6.months
    => Wed, 13 May 2009 13:09:20 ART -03:00
    >> t2.dst?
    => false
    

    The #utc_offset of a TimeZone is fixed to the non-dst offset, so that it will appear consistently in the time zone select menu.

    For example: US Central time will always appear in the time zone select as:

    "(GMT-06:00) Central Time (US & Canada)"

    whether or not it's currently dst.

    November 13th, 2008 @ 03:15 PM