Hello guys,

I am having a hard time with the following search query:

Image.search("", :conditions => { "category" => "user_images"}, :star => 
true, :with => { "client_id" => 6, :created_at => 
1.hour.ago..Time.zone.now})

I expect this search query to return one image I created some minutes 
ago... but I get none.

When I change the query to:

Image.search("", :conditions => { "category" => "user_images"}, :star => 
true, :with => { "client_id" => 6, :created_at => 
3.hours.ago..Time.zone.now})

...I get the expected result.

I am using Rails 3 & Active Record so the time is saved in utc...

How is Thinking Sphinx handling the timezone stuff? Are there any 
differences between ThinkingSphinx 2 and 3?
Do I have to make some conversions manually?

Cheers,

Govinda



-- 
You received this message because you are subscribed to the Google Groups 
"Thinking Sphinx" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/thinking-sphinx?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to