是否有办法设置rails日志记录器使用的时区,同时保持所有其他时间处理utc?
看看这个自定义记录器:http://cbpowell.wordpress.com/2012/04/05/beautiful-logging-for-ruby-on-rails-3-2/
你可以这样设置自定义时区:
def call(severity, time, progname, msg)
time = time.in_time_zone('Eastern Time (US & Canada)')