-
Type: Task
-
Resolution: Done
-
Affects Version/s: None
-
Component/s: None
I have a date field:
class LineItem field :event_date, type: Date, default: Time.now.to_date end
Running:
LineItem.min(:event_date)
With many records returns the wrong value:
"2013-02-15 00:00:00 UTC"
While running:
LineItem.only(:event_date).collect(&:event_date).min.to_s
returns:
"10/12/2011"