From: Chad Horohoe Date: Wed, 23 Feb 2011 13:51:00 +0000 (+0000) Subject: Per bug 26612, set datestyle and timezone in open() rather than relying on $wgDBuser... X-Git-Tag: 1.31.0-rc.0~31815 X-Git-Url: http://git.cyclocoop.org/%22.%28%24lien.?a=commitdiff_plain;h=ad2ea9d386bed65b4c1e964be55c2cc8588c53a4;p=lhc%2Fweb%2Fwiklou.git Per bug 26612, set datestyle and timezone in open() rather than relying on $wgDBuser having specific settings. --- diff --git a/includes/db/DatabasePostgres.php b/includes/db/DatabasePostgres.php index 01f41ee85e..487fabe44d 100644 --- a/includes/db/DatabasePostgres.php +++ b/includes/db/DatabasePostgres.php @@ -198,7 +198,9 @@ class DatabasePostgres extends DatabaseBase { $this->doQuery( "SET client_min_messages = 'ERROR'" ); } - $this->doQuery( "SET client_encoding='UTF8'" ); + $this->query( "SET client_encoding='UTF8'", __METHOD__ ); + $this->query( "SET datestyle = 'ISO, YMD'", __METHOD__ ); + $this->query( "SET timezone = 'GMT'", __METHOD__ ); global $wgDBmwschema; if ( isset( $wgDBmwschema )