remove unnessary timezone convertion
This commit is contained in:
@@ -74,7 +74,7 @@ class StockCheckPdf < Prawn::Document
|
||||
text "Check Start Time : ", :size => self.item_font_size, :align => :left
|
||||
end
|
||||
bounding_box([self.label_width, y_position], :width => self.label_width, :height => self.item_height) do
|
||||
text "#{ stockcheck.check_start.utc.getlocal.strftime('%d-%m-%Y %I:%M %p') }", :size => self.item_font_size, :align => :left
|
||||
text "#{ stockcheck.check_start.strftime('%d-%m-%Y %I:%M %p') }", :size => self.item_font_size, :align => :left
|
||||
end
|
||||
|
||||
y_position = cursor
|
||||
@@ -82,7 +82,7 @@ class StockCheckPdf < Prawn::Document
|
||||
text "Check End Time ", :size => self.item_font_size, :align => :left
|
||||
end
|
||||
bounding_box([self.label_width, y_position], :width => self.label_width, :height => self.item_height) do
|
||||
text "#{ stockcheck.check_start.utc.getlocal.strftime('%d-%m-%Y %I:%M %p') }", :size => self.item_font_size, :align => :left
|
||||
text "#{ stockcheck.check_start.strftime('%d-%m-%Y %I:%M %p') }", :size => self.item_font_size, :align => :left
|
||||
end
|
||||
|
||||
if stockcheck_items.length > 0
|
||||
|
||||
Reference in New Issue
Block a user