Closed (won't fix)
Project:
Date
Version:
5.x-2.3
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 Nov 2008 at 04:38 UTC
Updated:
3 Nov 2008 at 04:54 UTC
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
Comment #1
dgtlmoon commentedaaah got it, the default date was incorrect format