Skip to content

Commit

Permalink
Set the timezone for each request
Browse files Browse the repository at this point in the history
  • Loading branch information
ndbroadbent committed Nov 16, 2011
1 parent a0f331a commit 98ce444
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def timeline(asset)
private
#----------------------------------------------------------------------------
def set_context
ActiveSupport::TimeZone[session[:timezone_offset]] if session[:timezone_offset]
Time.zone = ActiveSupport::TimeZone[session[:timezone_offset]] if session[:timezone_offset]
ActionMailer::Base.default_url_options[:host] = request.host_with_port
I18n.locale = Setting.locale if Setting.locale

Expand Down

0 comments on commit 98ce444

Please sign in to comment.