Use the user from the context to format the date in Block::getPermissionsError()
authorAlexandre Emsenhuber <mediawiki@emsenhuber.ch>
Tue, 8 Jul 2014 20:13:01 +0000 (22:13 +0200)
committerAlexandre Emsenhuber <mediawiki@emsenhuber.ch>
Tue, 8 Jul 2014 20:13:01 +0000 (22:13 +0200)
Language::timeanddate() uses $wgUser to get the time correction and the
format to use.

Change-Id: I7dee3ae523d99aec7b36a317612a61376cf26d21

includes/Block.php

index 3896369..c393a79 100644 (file)
@@ -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() ),
                );
        }
 }