rails设置时区

rake -D time
rake time:zones:local
in application.rb
    #lexus added at 20101125
    config.active_record.default_timezone = :local  
    config.active_record.time_zone_aware_attributes = false  
    config.time_zone = "Beijing"
http://www.javaeye.com/topic/184194
http://pickerel.javaeye.com/blog/514293
原文地址:https://www.cnblogs.com/lexus/p/1887780.html