diff --git a/core/lib/Drupal/Core/Entity/Controller/VersionHistoryController.php b/core/lib/Drupal/Core/Entity/Controller/VersionHistoryController.php index ef596202de..c6c343e91b 100644 --- a/core/lib/Drupal/Core/Entity/Controller/VersionHistoryController.php +++ b/core/lib/Drupal/Core/Entity/Controller/VersionHistoryController.php @@ -145,7 +145,11 @@ protected function getRevisionDescription(RevisionableInterface $revision): arra if ($revision instanceof RevisionLogInterface) { // Use revision link to link to revisions that are not active. ['type' => $dateFormatType, 'format' => $dateFormatFormat] = $this->getRevisionDescriptionDateFormat($revision); - $linkText = $this->dateFormatter->format($revision->getRevisionCreationTime(), $dateFormatType, $dateFormatFormat); + if(!empty($revision->getRevisionCreationTime())) { + $linkText = $this->dateFormatter->format($revision->getRevisionCreationTime(), $dateFormatType, $dateFormatFormat); + } else { + $linkText = $this->dateFormatter->format($revision->get('changed')->value, $dateFormatType, $dateFormatFormat); + } // @todo Simplify this when https://www.drupal.org/node/2334319 lands. $username = [