remove unnessary timezone convertion
This commit is contained in:
@@ -95,7 +95,7 @@ class SaleItemsPdf < Prawn::Document
|
||||
text "From Date : ", :size => self.item_font_size,:align => :left
|
||||
end
|
||||
bounding_box([@label_name_width,y_position], :width => @label_item_width, :height => self.item_height) do
|
||||
text "#{ from_date.utc.getlocal.strftime("%d-%m-%Y")}" , :size => self.item_font_size,:align => :left
|
||||
text "#{ from_date.strftime("%d-%m-%Y")}" , :size => self.item_font_size,:align => :left
|
||||
end
|
||||
|
||||
y_position = cursor
|
||||
@@ -103,7 +103,7 @@ class SaleItemsPdf < Prawn::Document
|
||||
text "To Date : ", :size => self.item_font_size,:align => :left
|
||||
end
|
||||
bounding_box([@label_name_width,y_position], :width => @label_item_width, :height => self.item_height) do
|
||||
text "#{ to_date.utc.getlocal.strftime("%d-%m-%Y")}" , :size => self.item_font_size,:align => :left
|
||||
text "#{ to_date.strftime("%d-%m-%Y")}" , :size => self.item_font_size,:align => :left
|
||||
end
|
||||
|
||||
y_position = cursor
|
||||
|
||||
Reference in New Issue
Block a user