diff --git a/core/modules/datetime/datetime.module b/core/modules/datetime/datetime.module index 0112c94..a35819a 100644 --- a/core/modules/datetime/datetime.module +++ b/core/modules/datetime/datetime.module @@ -902,8 +902,6 @@ function datetime_datelist_validate($element, &$form_state) { $input = NestedArray::getValue($form_state['values'], $element['#parents'], $input_exists); if ($input_exists) { - $title = !empty($element['#title']) ? $element['#title'] : ''; - // If there's empty input and the field is not required, set it to empty. if (empty($input['year']) && empty($input['month']) && empty($input['day']) && !$element['#required']) { form_set_value($element, NULL, $form_state); @@ -956,7 +954,6 @@ function date_increment_round(&$date, $increment) { date_time_set($date, $hour, $minute, $second); if ($hour == 24) { $day += 1; - $hour = 0; $year = date_format($date, 'Y'); $month = date_format($date, 'n'); date_date_set($date, $year, $month, $day);