Reputation: 12913
Is there any way to set the timezone used by the rails logger while keeping all other time handling utc?
Upvotes: 2
Views: 760
Reputation: 13803
Take a look at this custom logger: http://cbpowell.wordpress.com/2012/04/05/beautiful-logging-for-ruby-on-rails-3-2/
You could set a custom timezone by doing something like this:
def call(severity, time, progname, msg)
time = time.in_time_zone('Eastern Time (US & Canada)')
Upvotes: 2