RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: mrkn
Site: http://d.hatena.ne.jp/mrkn
If you want to get a time with a specific time zone, you can do:
ActiveSupport::TimeZone.new("Asia/Tokyo").local(2012, 1, 1) # => Sun, 01 Jan 2012 00:00:00 JST +09:00
If you want to get a time with a specific time zone, you can do: