Time & Finders

0 views
Skip to first unread message

Chris

unread,
Oct 27, 2009, 5:42:32 PM10/27/09
to datam...@googlegroups.com
Hey,

I just found out that when querying like follows:

SomeModel.all(:date.gte => @some_other_time)

Where both :date, and @some_other_time are Time instances, it will only match records where the date (as opposed to time) component shows a difference, but completely ignores differences in the time component.

Is this a bug, or am I overlooking something?

Chris

unread,
Oct 27, 2009, 6:25:53 PM10/27/09
to datam...@googlegroups.com
Actually, it doesn't even properly sort rows by this date field...

2009/10/27 Chris <chris....@gmail.com>

Jonathan Bracy

unread,
Oct 27, 2009, 6:48:37 PM10/27/09
to datam...@googlegroups.com
What type of field is date?

-Jon

Chris

unread,
Oct 28, 2009, 4:06:02 PM10/28/09
to datam...@googlegroups.com
Time

2009/10/27 Jonathan Bracy <jonb...@gmail.com>
Reply all
Reply to author
Forward
0 new messages