]> git.wh0rd.org Git - tt-rss.git/commitdiff
pgsql: force datestyle to ISO, european for PHP strtotime() compatibility
authorAndrew Dolgov <fox@madoka.spb.ru>
Tue, 25 Nov 2008 10:23:39 +0000 (11:23 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Tue, 25 Nov 2008 10:23:39 +0000 (11:23 +0100)
functions.php

index 0adf9c5ea1061ea37dcc36471243b9cc26f55883..89752a588efecc4bf59bdb9e356eddc843495dcd 100644 (file)
                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);