diff --git a/core/lib/Drupal/Core/Datetime/Element/Datetime.php b/core/lib/Drupal/Core/Datetime/Element/Datetime.php index 87732b0..10e39a0 100644 --- a/core/lib/Drupal/Core/Datetime/Element/Datetime.php +++ b/core/lib/Drupal/Core/Datetime/Element/Datetime.php @@ -338,7 +338,7 @@ public static function processDatetime(&$element, FormStateInterface $form_state } // Expose a timezone selector. - if ($element['#expose_timezone']) { + if (!empty($element['#expose_timezone']) && $element['#expose_timezone']) { $element['timezone'] = array( '#type' => 'select', '#options' => array_combine(\DateTimeZone::listIdentifiers(), \DateTimeZone::listIdentifiers()),