config.time_zone = 'Beijing' config.active_record.default_timezone = :Beijing第一行使页面显示为北京时间第二行让数据库操作也修改为北京时间