设置 rails 使用中国大陆时间(set Rails using Beijing Time)

访问量: 1574

insert " config.time_zone = 'Asia/Harbin'" into your config/application.rb
# config/application.rb
module MCacheCleaner
  class Application < Rails::Application
    config.time_zone = 'Asia/Harbin'
  end 
end

订阅/RSS Feed

Subscribe

分类/category