From c915c406c153939f08060c7b56ab55e7b478fe4e Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Tue, 8 Jul 2014 22:13:01 +0200 Subject: [PATCH] Use the user from the context to format the date in Block::getPermissionsError() Language::timeanddate() uses $wgUser to get the time correction and the format to use. Change-Id: I7dee3ae523d99aec7b36a317612a61376cf26d21 --- includes/Block.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Block.php b/includes/Block.php index 3896369ce4..c393a795d4 100644 --- a/includes/Block.php +++ b/includes/Block.php @@ -1368,7 +1368,7 @@ class Block { $this->getId(), $lang->formatExpiry( $this->mExpiry ), (string)$intended, - $lang->timeanddate( wfTimestamp( TS_MW, $this->mTimestamp ), true ), + $lang->userTimeAndDate( $this->mTimestamp, $context->getUser() ), ); } } -- 2.20.1