fix timezone - time with local timezone to default timezone
This commit is contained in:
@@ -8,7 +8,7 @@ class Survey < ApplicationRecord
|
||||
end
|
||||
|
||||
if from.present? && to.present?
|
||||
survey = Survey.where("DATE_FORMAT(created_at,'%d-%m-%Y') >= ?" + " AND DATE_FORMAT(created_at,'%d-%m-%Y') <= ?", from,to)
|
||||
survey = Survey.where("created_at BETWEEN ? AND ?", from, to)
|
||||
query = survey.where(keyword)
|
||||
else
|
||||
where("dining_name LIKE ?", "%#{filter}%")
|
||||
|
||||
Reference in New Issue
Block a user