remove unnessary timezone convertion
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="7"> From Date : <%= @from.utc.getlocal.strftime("%Y-%b-%d") rescue '-' %> - To Date : <%= @to.utc.getlocal.strftime("%Y-%b-%d") rescue '-' %></th>
|
||||
<th colspan="7"> From Date : <%= @from.strftime("%Y-%b-%d") rescue '-' %> - To Date : <%= @to.strftime("%Y-%b-%d") rescue '-' %></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><%= t("views.right_panel.detail.item") %> <%= t("views.right_panel.detail.name") %></th>
|
||||
@@ -56,7 +56,7 @@
|
||||
<td><%= result.remark rescue '-' %></td>
|
||||
<td><%= Employee.find(result.stock_check.check_by).name rescue '-' %></td>
|
||||
<td><%= result.stock_check.reason rescue '-' %></td>
|
||||
<td><%= result.created_at.utc.getlocal.strftime("%e %b %Y %I:%M %p") rescue '-' %></td>
|
||||
<td><%= result.created_at.strftime("%e %b %Y %I:%M %p") rescue '-' %></td>
|
||||
</tr>
|
||||
<% !result.stock_count.nil? ? total_stock_count += result.stock_count : total_stock_count += 0 %>
|
||||
<% !result.stock_balance.nil? ? total_stock_balance += result.stock_balance : total_stock_balance += 0 %>
|
||||
|
||||
Reference in New Issue
Block a user