RailsCasts Pro episodes are now free!

Learn more or hide this

Thomas Schank's Profile

GitHub User: DrTom

Comments by Thomas Schank

Avatar

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

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

Also the docu reads that Time.zone 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?