# Setting Fixed Time Zone (without time savings)

**URL:** <https://www.ruby-forum.com/t/setting-fixed-time-zone-without-time-savings/180558>\
**Category:** Rails\
**Created:** [December 21, 2009, 8:21pm UTC](https://www.ruby-forum.com/t/setting-fixed-time-zone-without-time-savings/180558 "2009-12-21T20:21:06Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [December 21, 2009, 8:21pm UTC](https://www.ruby-forum.com/t/setting-fixed-time-zone-without-time-savings/180558/1 "2009-12-21T20:21:06Z")

</div>

Hi, all

Ruby 1.8.6  
Rails 2.3.2

Environment.rb  
config.time\_zone = ‘Buenos Aires’

## This zone is usually GMT -3:00hs but in this moment os the year it gives GMT -2.00 hs because the world time saving conventions…but…our country (Argentina) don’t adopt the time saving convention this year… How can I set the time zone to get an fixed GMT -3.00 ? Thanks Fabián

You received this message because you are subscribed to the Google  
Groups “Ruby on Rails: Talk” group.  
To post to this group, send email to removed\_email\_address@domain.invalid.  
To unsubscribe from this group, send email to  
removed\_email\_address@domain.invalid.  
For more options, visit this group at  
[http://groups.google.com/group/rubyonrails-talk?hl=en](http://groups.google.com/group/rubyonrails-talk?hl=en).

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [December 22, 2009, 12:03am UTC](https://www.ruby-forum.com/t/setting-fixed-time-zone-without-time-savings/180558/2 "2009-12-22T00:03:33Z")

</div>

Quoting FF [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> conventions…but…our country (Argentina) don’t adopt the time  
> saving convention this year…  
> How can I set the time zone to get an fixed GMT -3.00 ?

Update/Patch your OS, seriously. First example below is on a newly  
installed  
OpenSuSE 11.2. Or second method below (per  
[http://rails.rubyonrails.org/](http://rails.rubyonrails.org/)).  
Both are UTC -03:00. You indicate that your computer is giving you  
Buenos  
Aires is UTC -02:00. If the OS has been patched recently, try  
restarting the  
Rails server to get the new TZ info.

> > tz = ActiveSupport::TimeZone[“Buenos Aires”]  
> > =\> #\<ActiveSupport::TimeZone:0xb6e9670c @tzinfo=nil, @utc\_offset=-10800,  
> > @name=“Buenos Aires”\>  
> > tz = ActiveSupport::TimeZone[-3]  
> > =\> #\<ActiveSupport::TimeZone:0xb6e966f8 @tzinfo=nil, @utc\_offset=-10800,  
> > @name=“Brasilia”\>

HTH,  
Jeffrey

–

You received this message because you are subscribed to the Google  
Groups “Ruby on Rails: Talk” group.  
To post to this group, send email to removed\_email\_address@domain.invalid.  
To unsubscribe from this group, send email to  
removed\_email\_address@domain.invalid.  
For more options, visit this group at  
[http://groups.google.com/group/rubyonrails-talk?hl=en](http://groups.google.com/group/rubyonrails-talk?hl=en).

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [December 22, 2009, 7:16pm UTC](https://www.ruby-forum.com/t/setting-fixed-time-zone-without-time-savings/180558/3 "2009-12-22T19:16:39Z")

</div>

Hi Jeffrey.

My OS is WindowsXP SP3. The time saving is running ok for all the apps  
in the computer.  
So my computer is giving me, UTC -03:00.  
Rails with the time\_zone set to “Buenos Aires”…gives -02:00 so the  
problem is only with Rails.

FabiánOn 21 dic, 20:01, “Jeffrey L. Taylor” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > This zone is usually GMT -3:00hs but in this moment os the year it
> 
> > > tz = ActiveSupport::TimeZone[“Buenos Aires”]
> 
> =\> #\<ActiveSupport::TimeZone:0xb6e9670c @tzinfo=nil, @utc\_offset=-10800, @name=“Buenos Aires”\>\>\> tz = ActiveSupport::TimeZone[-3]
> 
> =\> #\<ActiveSupport::TimeZone:0xb6e966f8 @tzinfo=nil, @utc\_offset=-10800, @name=“Brasilia”\>
> 
> HTH,  
> Jeffrey

–

You received this message because you are subscribed to the Google  
Groups “Ruby on Rails: Talk” group.  
To post to this group, send email to removed\_email\_address@domain.invalid.  
To unsubscribe from this group, send email to  
removed\_email\_address@domain.invalid.  
For more options, visit this group at  
[http://groups.google.com/group/rubyonrails-talk?hl=en](http://groups.google.com/group/rubyonrails-talk?hl=en).

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [December 22, 2009, 9:07pm UTC](https://www.ruby-forum.com/t/setting-fixed-time-zone-without-time-savings/180558/4 "2009-12-22T21:07:16Z")

</div>

> > > config.time\_zone = ‘Buenos Aires’  
> > > Aires is UTC -02:00. If the OS has been patched recently, try restarting the  
> > > My OS is WindowsXP SP3. The time saving is running ok for all the apps  
> > > in the computer.  
> > > So my computer is giving me, UTC -03:00.  
> > > Rails with the time\_zone set to “Buenos Aires”…gives -02:00 so the  
> > > problem is only with Rails.
> 
> Fabián

Which version of ActiveSupport do you have? I had assumed that TZ info  
was  
coming from the OS, but digging into the Rails libraries, that turns out  
not  
to be true. Shame on me. The information is in:

activesupport-2.x.y/lib/active\_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Argentina/Buenos\_Aires.rb

Note: if the version of tzinfo is different, this probably is where your  
problem is. I checked ActiveSupport 2.3.3 and 2.3.5 and they are the  
same.

Jeffrey

–

You received this message because you are subscribed to the Google  
Groups “Ruby on Rails: Talk” group.  
To post to this group, send email to removed\_email\_address@domain.invalid.  
To unsubscribe from this group, send email to  
removed\_email\_address@domain.invalid.  
For more options, visit this group at  
[http://groups.google.com/group/rubyonrails-talk?hl=en](http://groups.google.com/group/rubyonrails-talk?hl=en).

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [December 26, 2009, 8:20am UTC](https://www.ruby-forum.com/t/setting-fixed-time-zone-without-time-savings/180558/5 "2009-12-26T08:20:03Z")

</div>

On Dec 23, 7:58 pm, FF [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> # tz.transition 2010, 3, :o4, 1269136800

You might try updating your tzinfo gem (if you have it installed it  
takes precendence over the one bundled in rails) - new versions are  
released every so often incorporating changes to the definition files

Fred

> On 22 dic, 17:05, “Jeffrey L. Taylor” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > > > > Rails 2.3.2  
> > > > > Update/Patch your OS, seriously. First example below is on a newly installed
> 
> > coming from the OS, but digging into the Rails libraries, that turns out not  
> > to be true. Shame on me. The information is in:
> 
> > activesupport-2.x.y/lib/active\_support/vendor/tzinfo-0.3.12/tzinfo/definiti ons/America/Argentina/Buenos\_Aires.rb
> 
> > Note: if the version of tzinfo is different, this probably is where your  
> > problem is. I checked ActiveSupport 2.3.3 and 2.3.5 and they are the same.
> 
> > Jeffrey

–

You received this message because you are subscribed to the Google  
Groups “Ruby on Rails: Talk” group.  
To post to this group, send email to removed\_email\_address@domain.invalid.  
To unsubscribe from this group, send email to  
removed\_email\_address@domain.invalid.  
For more options, visit this group at  
[http://groups.google.com/group/rubyonrails-talk?hl=en](http://groups.google.com/group/rubyonrails-talk?hl=en).

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [December 28, 2009, 11:57pm UTC](https://www.ruby-forum.com/t/setting-fixed-time-zone-without-time-savings/180558/6 "2009-12-28T23:57:52Z")

</div>

That Works.  
I have tzinfo-0.3.12 gem  
Upgrade to tzinfo-0.3.15 gem  
Thanks a lot to all of the buddies  
Fabián  
On 24 dic, 13:36, Frederick C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > > > > > config.time\_zone = ‘Buenos Aires’  
> > > > > > Aires is UTC -02:00. If the OS has been patched recently, try restarting the  
> > > > > > My OS is WindowsXP SP3. The time saving is running ok for all the apps  
> > > > > > activesupport-2.x.y/lib/active\_support/vendor/tzinfo-0.3.12/tzinfo/definiti ons/America/Argentina/Buenos\_Aires.rb
> 
> > > Note: if the version of tzinfo is different, this probably is where your  
> > > problem is. I checked ActiveSupport 2.3.3 and 2.3.5 and they are the same.
> 
> > > Jeffrey

–

You received this message because you are subscribed to the Google  
Groups “Ruby on Rails: Talk” group.  
To post to this group, send email to removed\_email\_address@domain.invalid.  
To unsubscribe from this group, send email to  
removed\_email\_address@domain.invalid.  
For more options, visit this group at  
[http://groups.google.com/group/rubyonrails-talk?hl=en](http://groups.google.com/group/rubyonrails-talk?hl=en).

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [December 26, 2009, 8:46am UTC](https://www.ruby-forum.com/t/setting-fixed-time-zone-without-time-savings/180558/7 "2009-12-26T08:46:24Z")

</div>

Well…I want the things working…with glory or frustratation…  
I know that there´s no a lot of buddies here in the south dealing with  
this rails problems…and I know too that rails do not how to know  
that our contry is the only in this zone that no use this year the  
time saving…  
So I appreciate a lot you atention and help adout this issua…you  
keep with the glory…I only want to know how do this this work…  
Thanks again  
Fabián  
On 23 dic, 21:31, “Jeffrey L. Taylor” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> =\> true  
> =\> Wed, 23 Dec 2009 21:24:32 ART -03:00\>\> Time.now.in\_time\_zone(ActiveSupport::TimeZone[‘Buenos Aires’]).dst?  
> You want the glory/frustration of reporting this bug?
> 
> > definitions/America/Argentina/Buenos\_Aires.rb  
> > tz.transition 2010, 10, :o5, 1287284400
> 
> > > > > > How can I set the time zone to get an fixed GMT -3.00 ?
> 
> > > > Fabián
> 
> > –
> 
> > You received this message because you are subscribed to the Google G. “Ruby on Rails: Talk” group.  
> > To post to this group, send email to removed\_email\_address@domain.invalid.  
> > To unsubscribe from this group, send email to removed\_email\_address@domain.invalid.  
> > For more options, visit this group athttp://groups.google.com/group/rubyonrails-talk?hl=en.

–

You received this message because you are subscribed to the Google  
Groups “Ruby on Rails: Talk” group.  
To post to this group, send email to removed\_email\_address@domain.invalid.  
To unsubscribe from this group, send email to  
removed\_email\_address@domain.invalid.  
For more options, visit this group at  
[http://groups.google.com/group/rubyonrails-talk?hl=en](http://groups.google.com/group/rubyonrails-talk?hl=en).
