fix timezone
This commit is contained in:
@@ -20,7 +20,7 @@ class Settings::OutOfStockController < ApplicationController
|
||||
}
|
||||
|
||||
item_instance = MenuItemInstance.where(item_instance_code: [items_arr])
|
||||
date = DateTime.now
|
||||
date = Time.current
|
||||
|
||||
unless item_instance.nil?
|
||||
if !item_instance.first.is_out_of_stock?
|
||||
|
||||
@@ -17,8 +17,8 @@ class Settings::PromotionsController < ApplicationController
|
||||
# GET /promotions/new
|
||||
def new
|
||||
@promotion = Promotion.new
|
||||
@promotion.promo_start_date = DateTime.now
|
||||
@promotion.promo_end_date = DateTime.now
|
||||
@promotion.promo_start_date = Time.current
|
||||
@promotion.promo_end_date = Time.current
|
||||
end
|
||||
|
||||
# GET /promotions/1/edit
|
||||
|
||||
Reference in New Issue
Block a user