<script type='text/javascript'>

function makeDatePickers () {
  $('#trip_pickup_time, #trip_appointment_time, [data-behavior=date-time-picker]').datetimepicker({
        ampm: true,
        stepMinute: 15,
        stepHour: 1,
        hourMin: 8,
        hourMax: 18,
        hourGrid: 2,
        minuteGrid: 15,
        timeFormat: 'hh:mm t',
        dateFormat: 'D yy-mm-dd',
        showOn: "button",
        buttonImage: "<%=  image_path 'calendar-clock.png' %>",
        buttonImageOnly: true,
        constrainInput: false
  });
}

$(function(){
  makeDatePickers();
})

</script>

<script type='text/javascript'>

function makeDatePickers () {
  $('#trip_pickup_time, #trip_appointment_time, [data-behavior=date-time-picker]').datetimepicker({
        ampm: true,
        stepMinute: 15,
        stepHour: 1,
        hourMin: 7,
        hourMax: 18,
        hourGrid: 2,
        minuteGrid: 15,
        timeFormat: 'hh:mm t',
        dateFormat: 'D yy-mm-dd',
        showOn: "button",
        buttonImage: "<%=  image_path 'calendar-clock.png' %>",
        buttonImageOnly: true,
        constrainInput: false
  });
}

$(function(){
  makeDatePickers();
})

</script>

Change start hour to 7a from 8a for datetime widget
Change start hour to 7a from 8a for datetime widget
