# coding: utf-8 class Formily::DateTimeInput < Formily::Input def editor_type 'datetime' end def get_value_from_submit(submit) val = submit.input_values.where(input_id: self.id).pluck(:input_value).first || '' rescue '' if val.blank? self.default_value || '' else val end end end