message: datetime step is applicable on somecases
diff: @@ -30,6 +30,10 @@ export const isCheckboxOrRadioInput = (el: HTMLInputElement) => {
  return ['radio', 'checkbox'].indexOf(el.type) !== -1;
  };
  +export const isDateInput = (el: HTMLInputElement) => {
  + return ['date', 'week', 'month', 'datetime-local', 'time'].indexOf(el.type) !== -1;
  +};
  +
  /**
  * Gets the data attribute. the name must be kebab-case.
  */
  @@ -530,12 +534,15 @@ export const fillRulesFromElement = (el: HTMLInputElement, rules: string | { [st
  return rules;
  }
  + if (isDateInput(el)) {
  + const timeFormat = el.step && Number(el.step) < 60 ? 'hh:mm:ss' : 'hh:mm';
  +
  if (el.type === 'date') {
  return appendRule('date_format:YYYY-MM-DD', rules);
  }
  if (el.type === 'datetime-local') {
  - return appendRule('date_format:YYYY-MM-DDThh:mm', rules);
  + return appendRule(`date_format:YYYY-MM-DDT${timeFormat}`, rules);
  }
  if (el.type === 'month') {
  @@ -547,9 +554,8 @@ export const fillRulesFromElement = (el: HTMLInputElement, rules: string | { [st
  }
  if (el.type === 'time') {
  - const format = el.step && Number(el.step) < 60 ? 'hh:mm:ss' : 'hh:mm';
  -
  - return appendRule(`date_format:${format}`, rules);
  + return appendRule(`date_format:${timeFormat}`, rules);
  + }
  }
  return rules;
  