diff --git a/includes/RevisionList.php b/includes/RevisionList.php index d10b5412cb1..0f771119924 100644 --- a/includes/RevisionList.php +++ b/includes/RevisionList.php @@ -338,7 +338,8 @@ class RevisionItem extends RevisionItemBase { * @return string */ protected function getRevisionLink() { - $date = $this->list->getLanguage()->timeanddate( $this->revision->getTimestamp(), true ); + $date = htmlspecialchars( $this->list->getLanguage()->userTimeAndDate( + $this->revision->getTimestamp(), $this->list->getUser() ) ); if ( $this->isDeleted() && !$this->canViewContent() ) { return $date; }