Sign in through GitHub

Please read for an updated status on RailsCasts:

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