1.9.3-p286 :001 > Time.zone.now => Thu, 07 Feb 2013 06:34:49 UTC +00:00 1.9.3-p286 :002 > Time.zone = 'Eastern Time (US & Canada)' => "Eastern Time (US & Canada)" 1.9.3-p286 :003 > Time.zone.now => Thu, 07 Feb 2013 01:35:00 EST -05:00
On Thu, Feb 7, 2013 at 11:24 AM, Dheeraj Kumar <a.dheeraj.ku...@gmail.com>wrote: > Read. http://guides.rubyonrails.org/i18n.html > > -- > Dheeraj Kumar > > On Thursday 7 February 2013 at 11:15 AM, Saravanan P wrote: > > Hello everyone, > > I am using rails 3.2.8. > I want to change time zone to New York time. > I changed following, but didn't work > > #config/application.rb > config.time_zone = 'Eastern Time (US & Canada)' > config.active_record.default_timezone = 'Eastern Time (US & Canada)' > > > If am wrong please clarify. > > Thank You! > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to rubyonrails-talk+unsubscr...@googlegroups.com. > To post to this group, send email to rubyonrails-talk@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msg/rubyonrails-talk/-/m4Yr5fIi9CYJ. > For more options, visit https://groups.google.com/groups/opt_out. > > > > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to rubyonrails-talk+unsubscr...@googlegroups.com. > To post to this group, send email to rubyonrails-talk@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.