http://www.mediawiki.org/wiki/Special:Code/MediaWiki/93804
Revision: 93804 Author: rotem Date: 2011-08-03 07:33:00 +0000 (Wed, 03 Aug 2011) Log Message: ----------- 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: trunk/phase3/includes/ProtectionForm.php =================================================================== --- trunk/phase3/includes/ProtectionForm.php 2011-08-03 07:06:04 UTC (rev 93803) +++ trunk/phase3/includes/ProtectionForm.php 2011-08-03 07:33:00 UTC (rev 93804) @@ -375,9 +375,9 @@ $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 ), _______________________________________________ MediaWiki-CVS mailing list MediaWiki-CVS@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs