fix timezone - time with local timezone to default timezone
This commit is contained in:
@@ -70,13 +70,13 @@
|
||||
from_date = @from.strftime("%d-%m-%Y")
|
||||
from_time = @from.strftime("%H:%M") if @from.strftime("%H:%M") != "00:00"
|
||||
else
|
||||
from_date = Time.now.strftime('%d-%m-%Y')
|
||||
from_date = Time.current.strftime('%d-%m-%Y')
|
||||
end
|
||||
if !@to.nil? && @to != ""
|
||||
to_date = @to.strftime("%d-%m-%Y")
|
||||
to_time = @to.strftime("%H:%M") if @to.strftime("%H:%M") != "23:59"
|
||||
else
|
||||
to_date = Time.now.strftime('%d-%m-%Y')
|
||||
to_date = Time.current.strftime('%d-%m-%Y')
|
||||
end
|
||||
%>
|
||||
<div class="col-lg-3 col-md-3 col-sm-3 col-mbl-view mbl-style">
|
||||
|
||||
Reference in New Issue
Block a user