LoginSignup
0
1

More than 3 years have passed since last update.

日時表示を日本時間に修正

Posted at

タイムゾーンの設定

application.rbに、タイムゾーンの設定を追記します。
【例】

application.rb
〜省略〜
    # Initialize configuration defaults for originally generated Rails version.
    config.time_zone = 'Tokyo'   #追記

    # Settings in config/environments/* take precedence over those specified here.
    # Application configuration can go into files in config/initializers
    # -- all .rb files in that directory are automatically loaded after loading
    # the framework and any gems in your application.
〜省略〜
0
1
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
1