In date_popup's README.txt, it states that
The time selector will add AM/PM if 'a' is in the format string.
Which leads me to believe that
'#default_value' => date("m/d/Y H:ia"),
'#date_format' => 'm/d/Y H:ia',
should result in a textfield for the time picker that looks like:
[2:25pm]
but instead I just get a blank text field. I can't get any combination of default_value / date_format to result in what I'm looking for. Am I reading the documentation wrong, or can this be achieved?
Update: I couldn't get this darn thing working and decided to disable the timepicker (admin/config/date/date_popup) and added the timepicker from http://jonthornton.github.com/jquery-timepicker/ using the following code:
$form['#attached']['css'][] = 'path/to/jquery-timepicker/jquery.timepicker.css';
$form['#attached']['js'][] = '//ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js';
$form['#attached']['js'][] = array('data' => "var jq9 = jQuery.noConflict();", 'type' => 'inline');
$form['#attached']['js'][] = 'path/to/jquery-timepicker/jquery.timepicker.js';
$form['#attached']['js'][] = array(
'data' => "
jq9(document).ready(function() {
jq9('#edit-start-date--popup-1').timepicker();
});",
'type' => 'inline',
);
$form['start_date'] = array(
'#title' => 'Start Date',
'#type' => 'date_popup',
'#required' => TRUE,
'#date_type' => DATE_DATETIME,
'#date_timezone' => date_default_timezone(),
'#default_value' => date("m/d/Y h:ia"),
'#date_format' => 'm/d/Y h:ia',
'#date_increment' => 1,
'#date_year_range' => '-1:+1',
);