Patch that fixes bug number 14452. patch by AhmadSherif.
authorMohamed Magdy <alnokta@users.mediawiki.org>
Mon, 23 Jun 2008 22:39:49 +0000 (22:39 +0000)
committerMohamed Magdy <alnokta@users.mediawiki.org>
Mon, 23 Jun 2008 22:39:49 +0000 (22:39 +0000)
includes/parser/Parser.php

index 4daa8f2..43e3b22 100644 (file)
@@ -3706,6 +3706,12 @@ class Parser
                        $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