In the protection form, show the current protection expiry time in the local time...
authorRotem Liss <rotem@users.mediawiki.org>
Wed, 3 Aug 2011 07:33:00 +0000 (07:33 +0000)
committerRotem Liss <rotem@users.mediawiki.org>
Wed, 3 Aug 2011 07:33:00 +0000 (07:33 +0000)
includes/ProtectionForm.php

index 2adedb7..e68be85 100644 (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 ),