my application stores attendance datetime from user as 2014-11-23 08:42:00 by converting it to UTC, application has custom search method to search attendance only by entering date as 2014-11-23. Now problem is i have 5 attendance of date 2014-11-23 with different time and Rails stored it by converting into UTC. so for 2 record it is converted and date is changed to 2014-11-22.
my search query is 2014-11-23 and expected result is all 5 records but getting only 3. not getting other 2 because they are converted to 2014-11-22
How to get all 5 records only with entering 2014-11-23 ? Please help.