title: Set flatpickr datetime on last enabled day does not work
body: <p>I have flatpickr date picker on my webpages. Users can select date and time from range from minDate to maxDate. On create form component I also want to set last value, which user select - selectedDate.</p>
  <p><strong>If the <em>selectedDate</em> is from last day, flatpicker ignores it.</strong></p>
  <p>My code:</p>
  <pre class="lang-js prettyprint-override"><code>const options: Partial&lt;BaseOptions&gt; = {
      minDate: minDate, // &quot;2020-12-05 00:00&quot;
      maxDate: maxDate, // &quot;2020-12-24 23:59&quot;
      dateFormat: 'Y-m-d H:i',
      defaultDate: selectedDate, // &quot;2020-12-24 17:00&quot;
      enableTime: true,
  };
  
  const picker = &lt;flatpickr.Instance&gt; flatpickr(inputElement, options);
  picker.setDate(selectedDate);
  </code></pre>