pgsql: force datestyle to european for PHP strtotime() compatibility
This commit is contained in:
parent
31365729dc
commit
6fc720fd9f
1 changed files with 2 additions and 1 deletions
|
@ -5851,8 +5851,9 @@
|
|||
|
||||
function init_connection($link) {
|
||||
if (DB_TYPE == "pgsql") {
|
||||
pg_query("set client_encoding = 'UTF-8'");
|
||||
pg_query($link, "set client_encoding = 'UTF-8'");
|
||||
pg_set_client_encoding("UNICODE");
|
||||
pg_query($link, "set datestyle = 'european'");
|
||||
} else {
|
||||
if (defined('MYSQL_CHARSET') && MYSQL_CHARSET) {
|
||||
db_query($link, "SET NAMES " . MYSQL_CHARSET);
|
||||
|
|
Loading…
Reference in a new issue