<commit_before>// Initialize all Bootstrap 3 Datetime Pickers on the page
;(function() {
  
  $(document).ready(function() {
    var datetimeElts = $('.datetimepicker');
    for (var i = 0; i < datetimeElts.length; i++) {
      $(datetimeElts[i]).flatpickr({
        enableTime: true,
        altInput: true,
        defaultDate: moment($(datetimeElts[i]).val()).format("MMMM D YYYY, h:mm A")
      })
    }

    var dateElts = $('.datepicker');
<commit_msg>Fixed Date time picker always displaying 12AM<commit_after>// Initialize all Bootstrap 3 Datetime Pickers on the page
;(function() {
  
  $(document).ready(function() {
    var datetimeElts = $('.datetimepicker');
    for (var i = 0; i < datetimeElts.length; i++) {
      $(datetimeElts[i]).flatpickr({
        enableTime: true,
        altInput: true,
        defaultDate: new Date(datetimeElts[i].getAttribute("value"))
      })
    }

    var dateElts = $('.datepicker');

{'fraction_non_alphanumeric': 0.1564844587352626, 'fraction_numerical': 0.006430868167202572, 'mean_word_length': 3.1145374449339207, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6810694', 'n_tokens_mistral': 299, 'n_tokens_neox': 283, 'n_words': 75}