RailsCasts Pro episodes are now free!

Learn more or hide this

Kenta Murata's Profile

GitHub User: mrkn

Site: http://d.hatena.ne.jp/mrkn

Comments by Kenta Murata

Avatar

If you want to get a time with a specific time zone, you can do:

ruby
ActiveSupport::TimeZone.new("Asia/Tokyo").local(2012, 1, 1)  # => Sun, 01 Jan 2012 00:00:00 JST +09:00