set time zone aware attributes on in spec helper for AR

This commit is contained in:
Adam Meehan
2008-05-22 07:35:01 +10:00
parent fb463ca7a0
commit 685b0054fe
5 changed files with 119 additions and 101 deletions

View File

@@ -21,7 +21,9 @@ else
end
Time.zone_default = Time.send!(:get_zone, 'UTC') if vendored_rails
Time.zone_default = TimeZone['UTC']
ActiveRecord::Base.default_timezone = :utc
ActiveRecord::Base.time_zone_aware_attributes = true
require 'validates_timeliness'