From: Andrew Dolgov Date: Tue, 25 Nov 2008 10:23:39 +0000 (+0100) Subject: pgsql: force datestyle to ISO, european for PHP strtotime() compatibility X-Git-Tag: 1.2.30~28 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=045d0ab83ad08e856adcf208080d008515a9ec9f;p=tt-rss.git pgsql: force datestyle to ISO, european for PHP strtotime() compatibility --- diff --git a/functions.php b/functions.php index 0adf9c5e..89752a58 100644 --- a/functions.php +++ b/functions.php @@ -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);