-
Type: Task
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
I have this date: 2014-04-19T13:21:16.194Z
and a model with a Time field:
class Foo include Mongoid::Document field :date, type: Time end
Now I query by this field:
foo_date = Time.parse(params[:d])
@foo= Foo.where(:date.gt => foo_date)
Here is the issue, the query done is:
Unable to find source-code formatter for language: shell. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
... selector={"foo.date"=>{"$gt"=>2014-04-19 11:21:16 UTC}} ...
And the usec: .194 was missed.
How can I query by the complete date?