diff --git a/core/lib/Drupal/Core/Field/Plugin/Field/FieldFormatter/TimestampFormatter.php b/core/lib/Drupal/Core/Field/Plugin/Field/FieldFormatter/TimestampFormatter.php index 70c7f547b0..5ccc58cb32 100644 --- a/core/lib/Drupal/Core/Field/Plugin/Field/FieldFormatter/TimestampFormatter.php +++ b/core/lib/Drupal/Core/Field/Plugin/Field/FieldFormatter/TimestampFormatter.php @@ -250,7 +250,7 @@ public function viewElements(FieldItemListInterface $items, $langcode) { $date_format = $this->getSetting('date_format'); $custom_date_format = ''; - $timezone = $this->getSetting('timezone'); + $timezone = $this->getSetting('timezone') ?: NULL; $tooltip = $this->getSetting('tooltip'); $langcode = $tooltip_langcode = NULL; $timeago = $this->getSetting('timeago');