pgsql: force datestyle to ISO, european for PHP strtotime() compatibility
This commit is contained in:
@@ -5853,7 +5853,7 @@
|
|||||||
if (DB_TYPE == "pgsql") {
|
if (DB_TYPE == "pgsql") {
|
||||||
pg_query($link, "set client_encoding = 'UTF-8'");
|
pg_query($link, "set client_encoding = 'UTF-8'");
|
||||||
pg_set_client_encoding("UNICODE");
|
pg_set_client_encoding("UNICODE");
|
||||||
pg_query($link, "set datestyle = 'european'");
|
pg_query($link, "set datestyle = 'ISO, european'");
|
||||||
} else {
|
} else {
|
||||||
if (defined('MYSQL_CHARSET') && MYSQL_CHARSET) {
|
if (defined('MYSQL_CHARSET') && MYSQL_CHARSET) {
|
||||||
db_query($link, "SET NAMES " . MYSQL_CHARSET);
|
db_query($link, "SET NAMES " . MYSQL_CHARSET);
|
||||||
|
|||||||
Reference in New Issue
Block a user