Try this:
zone = "Central Time (US & Canada)"
ActiveSupport::TimeZone[zone].parse("2013-04-03 17:47:00")
More Related Contents:
- Ignoring time zones altogether in Rails and PostgreSQL
- How to change default timezone for Active Record in Rails?
- In Ruby on Rails, how do I format a date with the “th” suffix, as in, “Sun Oct 5th”?
- How do I validate a date in rails?
- Rails formatting date
- In Ruby on Rails, what’s the difference between DateTime, Timestamp, Time and Date?
- Find number of months between two Dates in Ruby on Rails
- Ruby / Rails – Change the timezone of a Time, without changing the value
- Convert UTC to local time in Rails 3
- How to check if a string is a valid date
- raw vs. html_safe vs. h to unescape html
- Rails extending ActiveRecord::Base
- Difference between attr_accessor and attr_accessible
- Learning Ruby on Rails
- Build vs new in Rails 3
- ExecJS::RuntimeError in Users#index (RoR)
- ActiveRecord OR query Hash notation
- What does force_ssl do in Rails?
- Rails find_or_create_by more than one attribute?
- Is it possible to set ENV variables for rails development environment in my code?
- Run rake task in controller
- GroupingError: ERROR: column must appear in the GROUP BY clause or be used in an aggregate function
- Stop javascript Date function from changing timezone offset
- docker postgres with initial data is not persisted over commits
- Using Rails link_to for links that post
- Ruby on Rails Best practices – Big Controller vs Small Controller
- Removing “utf8=✓” from Rails 3 form submissions
- simple hit counter for page views in rails
- How to save a base64 string as an image using ruby
- Access helpers from mailer?