remove unnessary timezone convertion
This commit is contained in:
@@ -170,7 +170,7 @@ class ReceiptBillPdf < Prawn::Document
|
||||
|
||||
y_position = cursor
|
||||
if sale_data.bookings[0].dining_facility_id.to_i > 0
|
||||
time = sale_data.receipt_date.strftime('%d-%m-%Y') +"("+ sale_data.bookings[0].checkin_at.utc.getlocal.strftime('%I:%M %p') +"-"+ sale_data.bookings[0].checkout_at.utc.getlocal.strftime('%I:%M %p')+")"
|
||||
time = sale_data.receipt_date.strftime('%d-%m-%Y') +"("+ sale_data.bookings[0].checkin_at.strftime('%I:%M %p') +"-"+ sale_data.bookings[0].checkout_at.strftime('%I:%M %p')+")"
|
||||
else
|
||||
time = sale_data.receipt_date.strftime('%d-%m-%Y %H:%M %p')
|
||||
end
|
||||
@@ -180,8 +180,8 @@ class ReceiptBillPdf < Prawn::Document
|
||||
end
|
||||
|
||||
# bounding_box([self.item_description_width,y_position], :width =>self.label_width+5) do
|
||||
# text "(#{ sale_data.bookings[0].checkin_at.utc.getlocal.strftime('%I:%M %p') }
|
||||
# - #{ sale_data.bookings[0].checkin_at.utc.getlocal.strftime('%I:%M %p') })" ,
|
||||
# text "(#{ sale_data.bookings[0].checkin_at.strftime('%I:%M %p') }
|
||||
# - #{ sale_data.bookings[0].checkin_at.strftime('%I:%M %p') })" ,
|
||||
# :size => self.item_font_size,:align => :right
|
||||
# end
|
||||
move_down line_move
|
||||
|
||||
Reference in New Issue
Block a user