diff --git a/app/views/admin/seminar_signups/edit.html.erb b/app/views/admin/seminar_signups/edit.html.erb index 813f3a3..6555c69 100644 --- a/app/views/admin/seminar_signups/edit.html.erb +++ b/app/views/admin/seminar_signups/edit.html.erb @@ -321,7 +321,7 @@ $(".upload").on("change",function(){ $("#seminar_signup_signup_confirmed").on("change",function () { if(this.checked){ dt = new Date(); - format = dt.getFullYear() + "/" + dt.getMonth() + "/" + dt.getDate() + " " + dt.getHours() + ":" + dt.getMinutes(); + format = dt.getFullYear() + "/" + (dt.getMonth() + 1) + "/" + dt.getDate() + " " + dt.getHours() + ":" + dt.getMinutes(); $("#seminar_signup_signup_confirmed_date").val(format); }else{ $("#seminar_signup_signup_confirmed_date").val(""); @@ -331,7 +331,7 @@ $("#seminar_signup_signup_confirmed").on("change",function () { $("#seminar_signup_is_confirmed").on("change",function () { if(this.checked){ dt = new Date(); - format = dt.getFullYear() + "/" + dt.getMonth() + "/" + dt.getDate() + " " + dt.getHours() + ":" + dt.getMinutes(); + format = dt.getFullYear() + "/" + (dt.getMonth() + 1) + "/" + dt.getDate() + " " + dt.getHours() + ":" + dt.getMinutes(); $("#seminar_signup_is_confirmed_date").val(format); }else{ $("#seminar_signup_is_confirmed_date").val("");