Commit 45db74aa authored by Dries's avatar Dries
Browse files

- Patch #37494 by darius / chx: fixed problem with dates.

parent ab468baa
......@@ -548,6 +548,8 @@ function expand_date($element) {
'year' => format_date(time(), 'custom', 'Y'));
}
$element['#tree'] = TRUE;
// Determine the order of day, month, year in the site's chosen date format.
$format = variable_get('date_format_short', 'm/d/Y');
$sort = array();
......@@ -576,7 +578,6 @@ function expand_date($element) {
'#type' => 'select',
'#value' => $element['#value'][$type],
'#attributes' => $element['#attributes'],
'#parents' => $parents,
'#options' => $options,
);
}
......
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