In the protection form, show the current protection expiry time in the local time and not in UTC.
This commit is contained in:
parent
541aa4cbdd
commit
53e9941f36
1 changed files with 3 additions and 3 deletions
|
|
@ -375,9 +375,9 @@ class ProtectionForm {
|
|||
|
||||
$expiryFormOptions = '';
|
||||
if ( $this->mExistingExpiry[$action] && $this->mExistingExpiry[$action] != 'infinity' ) {
|
||||
$timestamp = $wgLang->timeanddate( $this->mExistingExpiry[$action] );
|
||||
$d = $wgLang->date( $this->mExistingExpiry[$action] );
|
||||
$t = $wgLang->time( $this->mExistingExpiry[$action] );
|
||||
$timestamp = $wgLang->timeanddate( $this->mExistingExpiry[$action], true );
|
||||
$d = $wgLang->date( $this->mExistingExpiry[$action], true );
|
||||
$t = $wgLang->time( $this->mExistingExpiry[$action], true );
|
||||
$expiryFormOptions .=
|
||||
Xml::option(
|
||||
wfMsg( 'protect-existing-expiry', $timestamp, $d, $t ),
|
||||
|
|
|
|||
Loading…
Reference in a new issue