In the protection form, show the current protection expiry time in the local time and not in UTC.

This commit is contained in:
Rotem Liss 2011-08-03 07:33:00 +00:00
parent 541aa4cbdd
commit 53e9941f36

View file

@ -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 ),