LoginSignup
0
0

More than 3 years have passed since last update.

日時表示を日本時間にする方法

Posted at

今回はcreated_atなどで表示される時間を日本時間に変更する方法を紹介していきます。

これだけでOK

application.rb
class Application < Rails::Application
    config.time_zone = 'Tokyo'
end

以上

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0