* (see also bug 12815)
*/
$ts = $this->mOptions->getTimestamp();
- $tz = 'UTC';
+ $tz = wfMsgForContent( 'timezone-utc' );
if ( isset( $wgLocaltimezone ) ) {
$unixts = wfTimestamp( TS_UNIX, $ts );
$oldtz = getenv( 'TZ' );
$tz = date( 'T', $unixts ); # might vary on DST changeover!
putenv( 'TZ='.$oldtz );
}
-
- $ctz = wfMsgForContent('timezone');
- if (!wfEmptyMsg('timezone', $ctz)) {
- $tz = $ctz;
- }
-
+
$d = $wgContLang->timeanddate( $ts, false, false ) . " ($tz)";
# Variable replacement
# Signatures
'signature' => '[[{{ns:user}}:$1|$2]]', # do not translate or duplicate this message to other languages
'signature-anon' => '[[{{#special:Contributions}}/$1|$2]]', # do not translate or duplicate this message to other languages
+'timezone-utc' => 'UTC', # only translate this message to other languages if you have to change it
# Core parser functions
'unknown_extension_tag' => 'Unknown extension tag "$1"',