From 7ebdf7c3d72716f8b950c83c50c829d4d2f082eb Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Tue, 15 Sep 2015 16:12:32 +0800 Subject: [PATCH] fix for dates --- app/views/admin/ad_images/_form.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/admin/ad_images/_form.html.erb b/app/views/admin/ad_images/_form.html.erb index 3d34d49..6a8fa50 100644 --- a/app/views/admin/ad_images/_form.html.erb +++ b/app/views/admin/ad_images/_form.html.erb @@ -127,7 +127,7 @@
- <%= f.datetime_picker :postdate, :no_label => true %> + <%= f.datetime_picker :postdate, :no_label => true, :new_record => @ad_image.new_record? %>
@@ -135,7 +135,7 @@
- <%= f.datetime_picker :deadline, :no_label => true %> + <%= f.datetime_picker :deadline, :no_label => true, :new_record => @ad_image.new_record? %>