mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-14 20:05:57 +00:00
pgsql: force datestyle to european for PHP strtotime() compatibility
This commit is contained in:
@@ -5851,8 +5851,9 @@
|
|||||||
|
|
||||||
function init_connection($link) {
|
function init_connection($link) {
|
||||||
if (DB_TYPE == "pgsql") {
|
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_set_client_encoding("UNICODE");
|
||||||
|
pg_query($link, "set datestyle = '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