Commit 2e4d546c authored by metzlerd's avatar metzlerd
Browse files

Changing to use date formats that are Y-m-d.

parent 0dd1e089
......@@ -569,6 +569,7 @@ function forena_parameter_form($formid, &$form_state, $parameters, $attributes=
}
}
$ctl_attrs['#forena_date_format'] = @$options['date_parm_format'] ? $options['date_parm_format'] : 'Y-m-d';
if (@$options['date_year_range']) {
$ctl_attrs['#date_year_range'] = $options['date_year_range'];
......@@ -679,7 +680,7 @@ function forena_parameter_form_submit($form, &$form_state) {
case 'date_text':
$datetime = @strtotime($value);
if ($datetime) {
$value = $values['params'][$key] = date($ctl['#date_format'], $datetime);
$value = $values['params'][$key] = date($ctl['#forena_date_format'], $datetime);
}
break;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment