update utc

This commit is contained in:
Aung Myo
2017-06-27 15:10:42 +06:30
parent f762664912
commit ff2844124e
2 changed files with 2 additions and 2 deletions

View File

@@ -117,7 +117,7 @@
</span></p>
</div>
<div class="col-lg-6 col-md-6 col-sm-6 text-right">
<p>Date: <span id="receipt_date"><%= @sale.created_at.utc.getlocal.strftime("%d/%m/%Y - %I:%M %p") rescue '-'%></span></p>
<p>Date: <span id="receipt_date"><%= @sale.created_at.strftime("%d/%m/%Y - %I:%M %p") rescue '-'%></span></p>
</div>
</div>
<div class="card-title row customer_detail hide">

View File

@@ -13,7 +13,7 @@ module SXRestaurants
# -- all .rb files in that directory are automatically loaded.
config.active_record.time_zone_aware_types = [:datetime, :time]
config.active_job.queue_adapter = :sidekiq
# config.time_zone = 'Asia/Rangoon'
config.time_zone = 'Asia/Rangoon'
end