Skip to content

Commit

Permalink
Fix DateTime#dump to work correctly with ActiveSupport
Browse files Browse the repository at this point in the history
  • Loading branch information
solnic committed Mar 3, 2010
1 parent c2bad84 commit 832499b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mongo_adapter/types/date_time.rb
Expand Up @@ -13,7 +13,7 @@ def self.dump(value, property)
when Time
value
when ::DateTime
value.to_time.utc
value.utc.to_time
end
end

Expand Down

0 comments on commit 832499b

Please sign in to comment.