Rails:修改显示北京时区

config/environments加入下面两行就可以了

config.active_record.default_timezone = :local
config.time_zone = "Beijing"