Rails: How to parse date-time string into a specific time zone

Try this:

zone = "Central Time (US & Canada)"  

ActiveSupport::TimeZone[zone].parse("2013-04-03 17:47:00")

Leave a Comment