r93804 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r93803‎ | r93804 | r93805 >
Date:07:33, 3 August 2011
Author:rotem
Status:ok
Tags:
Comment:
In the protection form, show the current protection expiry time in the local time and not in UTC.
Modified paths:
  • /trunk/phase3/includes/ProtectionForm.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/ProtectionForm.php
@@ -375,9 +375,9 @@
376376
377377 $expiryFormOptions = '';
378378 if ( $this->mExistingExpiry[$action] && $this->mExistingExpiry[$action] != 'infinity' ) {
379 - $timestamp = $wgLang->timeanddate( $this->mExistingExpiry[$action] );
380 - $d = $wgLang->date( $this->mExistingExpiry[$action] );
381 - $t = $wgLang->time( $this->mExistingExpiry[$action] );
 379+ $timestamp = $wgLang->timeanddate( $this->mExistingExpiry[$action], true );
 380+ $d = $wgLang->date( $this->mExistingExpiry[$action], true );
 381+ $t = $wgLang->time( $this->mExistingExpiry[$action], true );
382382 $expiryFormOptions .=
383383 Xml::option(
384384 wfMsg( 'protect-existing-expiry', $timestamp, $d, $t ),

Status & tagging log