mongoid/mongoid — Issue #1647: DateTime field not returning the correct time
Author: jbrown
Created: 2012-01-26 19:26:29+00:00
State: open

```irb
ruby-1.9.3-p0 :055 > Mongoid::VERSION
=> "2.4.1"
ruby-1.9.3-p0 :052 > Mongoid::Config.use_utc?
=> true
ruby-1.9.3-p0 :062 > pp n.fields
{"_type"=>
#String}>,
"_id"=>
#BSON::ObjectId}>,
"created_at"=>
#DateTime}>}
ruby-1.9.3-p0 :065 > date = DateTime.parse "2012-01-23 08:26:14 PM"
=> Mon, 23 Jan 2012 20:26:14 +0000
ruby-1.9.3-p0 :066 > date.utc?
=> true
ruby-1.9.3-p0 :050 > n.created_at = date
=> Mon, 23 Jan 2012 20:26:14 +0000
ruby-1.9.3-p0 :051 > n.created_at
=> Tue, 24 Jan 2012 01:26:14 +0000
ruby-1.9.3-p0 :064 > n.created_at.utc?
=> true
```

I passed it a UTC time but what I got back seems to be translated into my local timezone. But it still says it's a UTC time.... huh?