public Method

Initializer.initialize_time_zone

There's no documentation for this item.

Source Code

# File initializer.rb, line 321
def initialize_time_zone
  if configuration.time_zone
    Time.zone_default = TimeZone[configuration.time_zone]
    if configuration.frameworks.include?(:active_record)
      ActiveRecord::Base.time_zone_aware_attributes = true
      ActiveRecord::Base.default_timezone = :utc
    end
  end
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.