Commit 66a2358f88f0af470f7577bda45a2c02ce211950

Authored by Antonio Terceiro
2 parents 661fc11c 36442057

Merge branch 'timezone' into 'master'

Set default timezone as needed by rails 3.2

See commit.

See merge request !352
Showing 1 changed file with 3 additions and 0 deletions   Show diff stats
config/application.rb
@@ -115,6 +115,9 @@ module Noosfero @@ -115,6 +115,9 @@ module Noosfero
115 :key => '_noosfero_session', 115 :key => '_noosfero_session',
116 } 116 }
117 117
  118 + config.time_zone = File.read('/etc/timezone').split("\n").first
  119 + config.active_record.default_timezone = :local
  120 +
118 config.i18n.load_path += Dir.glob "#{Rails.root}/{baseplugins,config/plugins/*}/locales/*.{rb,yml}" 121 config.i18n.load_path += Dir.glob "#{Rails.root}/{baseplugins,config/plugins/*}/locales/*.{rb,yml}"
119 122
120 Noosfero::Plugin.setup(config) 123 Noosfero::Plugin.setup(config)