From 080eef78dd802ac5b2c979675922aa88d8d85578 Mon Sep 17 00:00:00 2001 From: Samir Jha Date: Mon, 13 Nov 2023 17:01:57 +0000 Subject: [PATCH] Fixes #36915 - Correct datetime input for report generation --- app/helpers/form_helper.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/helpers/form_helper.rb b/app/helpers/form_helper.rb index 6f4164bd4508..b461f2068a9e 100644 --- a/app/helpers/form_helper.rb +++ b/app/helpers/form_helper.rb @@ -396,7 +396,11 @@ def date_local_f(f, attr, options = {}) end def datetime_local_f(f, attr, options = {}) - react_form_input('dateTime', f, attr, options) + field(f, attr, options) do + addClass options, "container" + addClass options, "form-control" + f.datetime_local_field attr, options + end end def orderable_select_f(f, attr, choices, select_options = {}, html_options = {})