fix date formatting in non-english languages, thanks to uz@musoftware.de

git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1884 a1433add-5e2c-0410-b055-b7f2511e0802
pull/12/head
David Goodwin 8 years ago
parent bd8e0e3ae3
commit 2f2db5949a

@ -565,7 +565,7 @@ abstract class PFAHandler {
$no = escape_string(Config::lang('NO'));
if (db_pgsql()) {
$formatted_date = "TO_DATE(text(###KEY###), '" . escape_string(Config::Lang('dateformat_pgsql')) . "')";
$formatted_date = "TO_CHAR(###KEY###, '" . escape_string(Config::Lang('dateformat_pgsql')) . "')";
# $base64_decode = "DECODE(###KEY###, 'base64')";
} elseif (db_sqlite()) {
$formatted_date = "strftime(###KEY###, '" . escape_string(Config::Lang('dateformat_mysql')) . "')";

Loading…
Cancel
Save