我遇到mongoid问题
a = Analysis.find(' 59fadd2bfd52a107d90dadf7')
...
b = a.updated_at.iso8601
=> " 2017-11-08T15:16:31 + 01:00"
Analysis.any_of({:id =>' 59fadd2bfd52a107d90dadf7',:updated_at => Time.zone.parse(b)})。count
=> 0
Analysis.any_of({:id =>' 59fadd2bfd52a107d90dadf7',:updated_at => a.updated_at})。count
=> 1
我测试了很多东西,但我总是有0个计数返回
Time.zone.parse
DateTime.parse
Time.parse
而且我不知道如何比较日期X_X,b变量实际上是我发送给我的api