From 66407a75d1eced92d0bd725caa028f54a3b345be Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Sat, 8 Jun 2013 19:53:04 +0200 Subject: Fix date format issues on MS SQL Server (#1488918) --- program/lib/Roundcube/rcube_db_mssql.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'program/lib/Roundcube/rcube_db_mssql.php') diff --git a/program/lib/Roundcube/rcube_db_mssql.php b/program/lib/Roundcube/rcube_db_mssql.php index 71317078c..4c005b0d0 100644 --- a/program/lib/Roundcube/rcube_db_mssql.php +++ b/program/lib/Roundcube/rcube_db_mssql.php @@ -45,6 +45,18 @@ class rcube_db_mssql extends rcube_db // UTF-8 is default } + /** + * Driver-specific configuration of database connection + * + * @param array $dsn DSN for DB connections + * @param PDO $dbh Connection handler + */ + protected function conn_configure($dsn, $dbh) + { + // Set date format in case of non-default language (#1488918) + $this->query("SET DATEFORMAT ymd"); + } + /** * Return SQL function for current time and date * -- cgit v1.2.3