Merge "Fix case of $wgLocalTZoffset from 7e3386d4"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Tue, 23 Apr 2013 13:18:35 +0000 (13:18 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Tue, 23 Apr 2013 13:18:35 +0000 (13:18 +0000)
includes/Timestamp.php

index ba9b7b2..92e914e 100644 (file)
@@ -213,7 +213,7 @@ class MWTimestamp {
         * @return DateInterval Offset that was applied to the timestamp
         */
        public function offsetForUser( User $user ) {
-               global $wgLocalTZOffset;
+               global $wgLocalTZoffset;
 
                $option = $user->getOption( 'timecorrection' );
                $data = explode( '|', $option, 3 );
@@ -239,8 +239,8 @@ class MWTimestamp {
                // first value.
                if ( $data[0] == 'System' ) {
                        // First value is System, so use the system offset.
-                       if ( isset( $wgLocalTZOffset ) ) {
-                               $diff = $wgLocalTZOffset;
+                       if ( isset( $wgLocalTZoffset ) ) {
+                               $diff = $wgLocalTZoffset;
                        }
                } elseif ( $data[0] == 'Offset' ) {
                        // First value is Offset, so use the specified offset