Tuesday, December 22, 2009

[Rails] Re: Setting Fixed Time Zone (without time savings)

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án
On 21 dic, 20:01, "Jeffrey L. Taylor" <r...@abluz.dyndns.org> wrote:
> Quoting FF <fabia...@gmail.com>:
>
> > 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 ?
>
> Update/Patch your OS, seriously.  First example below is on a newly installed
> OpenSuSE 11.2.  Or second method below (perhttp://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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate