mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2026-01-02 17:19:13 +00:00
pgsql: force datestyle to ISO, european for PHP strtotime() compatibility
This commit is contained in:
@@ -5853,7 +5853,7 @@
|
||||
if (DB_TYPE == "pgsql") {
|
||||
pg_query($link, "set client_encoding = 'UTF-8'");
|
||||
pg_set_client_encoding("UNICODE");
|
||||
pg_query($link, "set datestyle = 'european'");
|
||||
pg_query($link, "set datestyle = 'ISO, european'");
|
||||
} else {
|
||||
if (defined('MYSQL_CHARSET') && MYSQL_CHARSET) {
|
||||
db_query($link, "SET NAMES " . MYSQL_CHARSET);
|
||||
|
||||
Reference in New Issue
Block a user