X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2FMWTimestamp.php;h=bc59588dce276970bd7b36039edce7ff8cb7c9c5;hb=fc33a701cbb4459b3cb4837bf55eafe9164c640f;hp=447dde3cb967d2b465d73488b9882dd5f6828792;hpb=9392d01c4e95be3c156ad594d8a8b6aa678daa7d;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/MWTimestamp.php b/includes/MWTimestamp.php index 447dde3cb9..bc59588dce 100644 --- a/includes/MWTimestamp.php +++ b/includes/MWTimestamp.php @@ -268,7 +268,7 @@ class MWTimestamp { // first value. if ( $data[0] == 'System' ) { // First value is System, so use the system offset. - if ( isset( $wgLocalTZoffset ) ) { + if ( $wgLocalTZoffset !== null ) { $diff = $wgLocalTZoffset; } } elseif ( $data[0] == 'Offset' ) { @@ -401,7 +401,7 @@ class MWTimestamp { * * @since 1.22 * @param bool|string $ts Timestamp to set, or false for current time - * @return MWTimestamp the local instance + * @return MWTimestamp The local instance */ public static function getLocalInstance( $ts = false ) { global $wgLocaltimezone; @@ -415,7 +415,7 @@ class MWTimestamp { * * @since 1.22 * @param bool|string $ts Timestamp to set, or false for current time - * @return MWTimestamp the instance + * @return MWTimestamp The instance */ public static function getInstance( $ts = false ) { return new self( $ts );