remove unnessary timezone convertion
This commit is contained in:
@@ -57,12 +57,12 @@
|
||||
<td><%= @booking.booking_id%></td>
|
||||
<td><%= link_to @booking.sale_id, transactions_sale_path(@booking.sale_id) rescue '-' %></td>
|
||||
<td><%= @booking.dining_facility.name rescue '' %></td>
|
||||
<td><%= @booking.checkin_at.utc.getlocal.strftime("%I:%M %p") %></td>
|
||||
<td><%= @booking.checkout_at.utc.getlocal.strftime("%I:%M %p") rescue '-' %></td>
|
||||
<td><%= @booking.checkin_at.strftime("%I:%M %p") %></td>
|
||||
<td><%= @booking.checkout_at.strftime("%I:%M %p") rescue '-' %></td>
|
||||
<td><%= @booking.checkin_by rescue '-' %></td>
|
||||
<td><%= @booking.checkout_by rescue '-' %></td>
|
||||
<td><%= @booking.booking_status %> </td>
|
||||
<td><%= @booking.created_at.utc.getlocal.strftime("%d-%m-%Y %I:%M %p") %> </td>
|
||||
<td><%= @booking.created_at.strftime("%d-%m-%Y %I:%M %p") %> </td>
|
||||
<%if current_login_employee.role == "administrator" %>
|
||||
<%if (!@order.nil?) && (@booking.sale_id.nil?) %>
|
||||
<td></td>
|
||||
@@ -139,7 +139,7 @@
|
||||
<td><%= @sale.grand_total rescue '-' %></td>
|
||||
<td><%= @sale.cashier_name rescue '-' %></td>
|
||||
<td> <%= @sale.sale_status %> </td>
|
||||
<td> <%= @sale.receipt_date.utc.getlocal.strftime("%d-%m-%Y %I:%M %p") %> </td>
|
||||
<td> <%= @sale.receipt_date.strftime("%d-%m-%Y %I:%M %p") %> </td>
|
||||
</tr>
|
||||
<% else %>
|
||||
<tr><td colspan="9"><strong><p style="text-align: center">There is no data ....</p></strong></td></tr>
|
||||
|
||||
Reference in New Issue
Block a user