1 date.elements.inc date_timezone_validate($element, &$form_state)

Validation for timezone input.

Move the timezone value from the nested field back to the original field.

File

core/modules/date/date.elements.inc, line 310
Date forms and form themes and validation.

Code

function date_timezone_validate($element, &$form_state) {
  if (date_hidden_element($element)) {
    return;
  }

  form_set_value($element, $element['#value']['timezone'], $form_state);
}