remove unnessary timezone convertion
This commit is contained in:
@@ -28,8 +28,8 @@ class Reports::IndutyController < BaseReportController
|
||||
|
||||
if @shift.present?
|
||||
@shift.each do |sh|
|
||||
@shift_from = sh.shift_started_at.nil? ? '-' : sh.shift_started_at.utc.getlocal.strftime("%e %b %I:%M%p")
|
||||
@shift_to = sh.shift_closed_at.nil? ? '-' : sh.shift_closed_at.utc.getlocal.strftime("%e %b %I:%M%p")
|
||||
@shift_from = sh.shift_started_at.nil? ? '-' : sh.shift_started_at.strftime("%e %b %I:%M%p")
|
||||
@shift_to = sh.shift_closed_at.nil? ? '-' : sh.shift_closed_at.strftime("%e %b %I:%M%p")
|
||||
@shift_data = sh
|
||||
end
|
||||
end
|
||||
@@ -48,8 +48,8 @@ class Reports::IndutyController < BaseReportController
|
||||
|
||||
date_arr = Array.new
|
||||
@induty_data.each do |induty|
|
||||
local_opening_date = induty.opening_date.nil? ? '-' : induty.opening_date.utc.getlocal.strftime("%e %b %I:%M%p")
|
||||
local_closing_date = induty.closing_date.nil? ? '-' : induty.closing_date.utc.getlocal.strftime("%e %b %I:%M%p")
|
||||
local_opening_date = induty.opening_date.nil? ? '-' : induty.opening_date.strftime("%e %b %I:%M%p")
|
||||
local_closing_date = induty.closing_date.nil? ? '-' : induty.closing_date.strftime("%e %b %I:%M%p")
|
||||
opening_date = induty.opening_date.nil? ? '-' : induty.opening_date.utc
|
||||
closing_date = induty.closing_date.nil? ? '-' : induty.closing_date.utc
|
||||
shift_id = induty.id.nil? ? '-' : induty.id
|
||||
|
||||
Reference in New Issue
Block a user