From ff3ad20aee464c9be9d8aca4a3062c2cb3a59dd4 Mon Sep 17 00:00:00 2001 From: masukomi Date: Thu, 9 Aug 2012 00:05:53 -0400 Subject: [PATCH] configured mongoid to use activesupport time zone --- config/mongoid.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/config/mongoid.yml b/config/mongoid.yml index de7b2d5b..b36976dc 100644 --- a/config/mongoid.yml +++ b/config/mongoid.yml @@ -1,10 +1,14 @@ development: host: localhost database: mobtvse_development + use_utc: false + use_activesupport_time_zone: true test: host: localhost database: mobtvse_test + use_utc: false + use_activesupport_time_zone: true # set these environment variables on your prod server production: @@ -13,6 +17,8 @@ production: username: <%= ENV['MONGOID_USERNAME'] %> password: <%= ENV['MONGOID_PASSWORD'] %> database: <%= ENV['MONGOID_DATABASE'] %> + use_utc: false + use_activesupport_time_zone: true # slaves: # - host: slave1.local # port: 27018