From 88a7288ff82ec88e788e0bda346057cd9e0ef092 Mon Sep 17 00:00:00 2001 From: Alan Bell <alanbell@ubuntu.com> Date: Wed, 15 Jun 2016 10:42:56 +0100 Subject: [PATCH] fix mm-dd-yyyy and yyyy-mm-dd formats --- modules/Reports/ReportRun.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/Reports/ReportRun.php b/modules/Reports/ReportRun.php index 2a3d73d5b..9f3ca4f42 100644 --- a/modules/Reports/ReportRun.php +++ b/modules/Reports/ReportRun.php @@ -449,7 +449,7 @@ class ReportRun extends CRMEntity } else if ($selectedfields[0] == "vtiger_crmentity" . $this->primarymodule) { $columnSQL = "vtiger_crmentity." . $selectedfields[1] . " AS '" . decode_html($header_label) . "'"; } else { - $userformat=str_replace(array("dd-mm-yyyy","mm-dd-yyyy","yyyy-mm-dd"),array("%d-%m-%Y","$m-%d-%Y","$Y-%m-%d"),$current_user->date_format); + $userformat=str_replace(array("dd-mm-yyyy","mm-dd-yyyy","yyyy-mm-dd"),array("%d-%m-%Y","%m-%d-%Y","%Y-%m-%d"),$current_user->date_format); $columnSQL = "date_format (" . $selectedfields[0] . "." . $selectedfields[1] . ",'$userformat') AS '" . decode_html($header_label) . "'"; } $this->queryPlanner->addTable($selectedfields[0]); -- GitLab