TIME ZONE 설정하기
상황
해결
UTC? Local?
# /config/application.rb
require "rails/all"
# Require the gems listed in Gemfile, including any gems
# you've limited to :test, :development, or :production.
Bundler.require(*Rails.groups)
module Project
class Application < Rails::Application
# Initialize configuration defaults for originally generated Rails version.
config.load_defaults 6.1
# Configuration for the application, engines, and railties goes here.
#
# These settings can be overridden in specific environments using the files
# in config/environments, which are processed later.
#
config.time_zone = "Seoul" # 원래 이 부분이 USA & CANADA 이렇게 되어있음
# config.eager_load_paths << Rails.root.join("extras")
end
endBASE 를 설정해도 안되는데?! Time.zone 을 사용하자!
Last updated