From c00da5160f45dbb055033196618ee8fd42589a8a Mon Sep 17 00:00:00 2001 From: Brady Miller Date: Wed, 14 Feb 2018 21:51:17 -0800 Subject: [PATCH] datetime format for clinical_reports.php --- interface/reports/clinical_reports.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/interface/reports/clinical_reports.php b/interface/reports/clinical_reports.php index 0b4de9ca2..f76321aa0 100644 --- a/interface/reports/clinical_reports.php +++ b/interface/reports/clinical_reports.php @@ -20,8 +20,8 @@ use OpenEMR\Core\Header; $comarr = array('allow_sms'=>xl('Allow SMS'),'allow_voice'=>xl('Allow Voice Message'),'allow_mail'=>xl('Allow Mail Message'),'allow_email'=>xl('Allow Email')); -$sql_date_from = (!empty($_POST['date_from'])) ? $_POST['date_from'] : date('Y-01-01 H:i:s'); -$sql_date_to = (!empty($_POST['date_to'])) ? $_POST['date_to'] : date('Y-m-d H:i:s'); +$sql_date_from = (!empty($_POST['date_from'])) ? DateTimeToYYYYMMDDHHMMSS($_POST['date_from']) : date('Y-01-01 H:i:s'); +$sql_date_to = (!empty($_POST['date_to'])) ? DateTimeToYYYYMMDDHHMMSS($_POST['date_to']) : date('Y-m-d H:i:s'); $type = $_POST["type"]; $facility = isset($_POST['facility']) ? $_POST['facility'] : ''; @@ -193,7 +193,7 @@ $communication = trim($_POST["communication"]); $('.datetimepicker').datetimepicker({ - + }); @@ -209,8 +209,8 @@ $communication = trim($_POST["communication"]); -
+
@@ -222,13 +222,13 @@ Search options include diagnosis, procedure, prescription, medical history, and : : - + : ' value='' size='10' maxlength='20' /> : - + : @@ -773,7 +773,7 @@ if ($_POST['form_refresh']) { -   +       @@ -1001,7 +1001,7 @@ if ($_POST['form_refresh']) { -   +       -- 2.11.4.GIT