fix timezone - time with local timezone to default timezone
This commit is contained in:
@@ -11,6 +11,8 @@ class Transactions::OrdersController < ApplicationController
|
||||
if filter.nil? && from.nil? && to.nil?
|
||||
orders = Order.order("order_id desc")
|
||||
else
|
||||
from = Time.zone.parse(params[:from]).beginning_of_day
|
||||
to = Time.zone.parse(params[:to]).end_of_day
|
||||
orders = Order.search(filter,from,to)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user