the following form entry always shows the current date/time not what i set in #default_value

      $form['sending_options']['schedule']['sched_start'] = array(
        '#type' => 'date_popup',
        '#title' => t('Starting on'),
        '#default_value' => '11/11/2008 12:34:56',
        '#date_type' => DATE_DATETIME,
        '#date_timezone' => date_default_timezone_name(),
        '#date_format' => 'm/d/Y - H:i',
        '#date_increment' => 1,
        '#date_year_range' => '-3:+3'
      );
 

Comments

dgtlmoon’s picture

Status: Active » Closed (won't fix)

aaah got it, the default date was incorrect format