title: Time gt query not working with mongoid and ruby on rails
body: <p>I am using mongoid and ruby on rails.</p>
  
  <p>I am storing <code>created_at</code> time with mongoid using</p>
  
  <pre><code>include Mongoid::Timestamps
  </code></pre>
  
  <p>So let's say I have 3 post created like this</p>
  
  <pre><code>{"post":"1","created_at": "2014-03-25 13:04:43"}
  {"post":"2","created_at": "2014-03-25 13:04:44"}
  {"post":"3","created_at": "2014-03-25 13:04:45"}
  </code></pre>
  
  <p>Now I want to get all posts which is created after <code>{"post":"2"}</code>, that is after <code>"2014-03-25 13:04:44"</code>, so that should only return <code>{"post":"3"}</code></p>
  
  <pre><code>Model.where(:created_at.gt =&gt; "2014-03-25 13:04:44")
  </code></pre>
  
  <p>But with above query it is returning <code>{"post":"2"}</code> and <code>{"post":"3"}</code>, so <code>{"post":"2"}</code>, should not be there.</p>
  
  <p>Also <code>.lt</code> queries work as expected.</p>
  
  <p>Any Idea why this is happening?</p>
  
  <p>Thanks in advance.</p>