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.iteye.com/topic/184194
http://pickerel.iteye.com/blog/514293

你可能感兴趣的:(Blog,Rails)