Sign in through GitHub

RailsCasts Pro episodes are now free!

Learn more or hide this

Thomas Schank's Profile

GitHub User: DrTom

Comments by Thomas Schank


I was wondering about Time.use_zone resp in a threaded environment
(like torquebox/jruby).

If I interpret the documentation correctly, then is a thread local
variable, which means it will just work fine. Can somebody confirm this?

Also the docu reads that is a per request value (in mri). However,
that would mean that you actually don't need to use an around filter. A before
filter should suffice, doesn't it?