fix timezone - time with local timezone to default timezone

This commit is contained in:
pyaephyoeaung
2022-05-19 14:20:55 +06:30
parent 7598a96e60
commit 214712fd2d
48 changed files with 294 additions and 305 deletions

View File

@@ -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