fix timezone
This commit is contained in:
@@ -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