packages/travix-ui-kit/components/_helpers.js
function normalizeDate(dateObject, hours = 0, minutes = 0, seconds = 0, milliseconds = 0) {
  dateObject.setHours(hours);
  dateObject.setMinutes(minutes);
  dateObject.setSeconds(seconds);
  dateObject.setMilliseconds(milliseconds);
  return dateObject;
}
function normalizeDate(dateObject, hours = 0, minutes = 0, seconds = 0, milliseconds = 0) {
  dateObject.setHours(hours);
  dateObject.setMinutes(minutes);
  dateObject.setSeconds(seconds);
  dateObject.setMilliseconds(milliseconds);
  return dateObject;
}
function normalizeDate ( dateObject , hours = 0 , minutes = 0 , seconds = 0 , milliseconds = 0 ) { dateObject . setHours ( hours ) ; dateObject . setMinutes ( minutes ) ; dateObject . setSeconds ( seconds ) ; dateObject . setMilliseconds ( milliseconds ) ; return dateObject ; }
Receives a date object and normalizes it to the proper hours, minutes,
seconds and milliseconds.

@method normalizeDate
@param {Date} dateObject Date object to be normalized.
@param {Number} hours Value to set the hours to. Defaults to 0
@param {Number} minutes Value to set the minutes to. Defaults to 0
@param {Number} seconds Value to set the seconds to. Defaults to 0
@param {Number} milliseconds Value to set the milliseconds to. Defaults to 0
@return {Date} The normalized date object.
Receives a date object and normalizes it to the proper hours minutes seconds and milliseconds .