transform time into local time in Ruby on Rails
ruby, ruby-on-rails
Solution
Also, remember that as of Rails 2.1, Timezones are supported.
in your config/environment.rb file:
config.time_zone = 'UTC'
You can find other values by running
rake time:zones:local
And Ryan Bates has a great railscast on it: http://railscasts.com/episodes/106-time-zones-in-rails-2-1
Problem
Right now I have: `Time.strftime("%I:%M%p")` which gives me the `hr:min AM/PM` format which I need. However it's coming back in UTC and I need it local time zone. How do I change it to local time zone and keep that same format for time?