fix timezone
This commit is contained in:
@@ -3,8 +3,8 @@ class Reports::StockCheckController < BaseReportController
|
||||
|
||||
def index
|
||||
|
||||
# from_date = DateTime.now.beginning_of_day
|
||||
# to_date = DateTime.now.end_of_day
|
||||
# from_date = Time.current.beginning_of_day
|
||||
# to_date = Time.current.end_of_day
|
||||
# unless params[:daterange].blank?
|
||||
# from_date = Date.parse(params[:daterange].split(' - ')[0]).beginning_of_day
|
||||
# to_date = Date.parse(params[:daterange].split(' - ')[1]).end_of_day
|
||||
|
||||
Reference in New Issue
Block a user