From dffedb7470a2c9014e01f6870e5110ef9aca2789 Mon Sep 17 00:00:00 2001 From: Chris Sharp Date: Fri, 3 Mar 2017 08:05:49 -0500 Subject: [PATCH] LP#1586108 - Fix incorrectly formatted date. Fix authored by Chris DeBellis. Signed-off-by: Chris Sharp --- controllers/report.controller.php | 1 + 1 file changed, 1 insertion(+) diff --git a/controllers/report.controller.php b/controllers/report.controller.php index e457084..ee1af8f 100644 --- a/controllers/report.controller.php +++ b/controllers/report.controller.php @@ -265,6 +265,7 @@ class reportController { $defaultValues->paramsDecoded->$field = 'real'; $field = $newParamName.'_date'; $defaultValues->paramsDecoded->$field = $dateField[$passes]; + $defaultValues->paramsDecoded->$field = substr($dateField[$passes],5,2).'/'.substr($dateField[$passes],8,2).'/'.substr($dateField[$passes],0,4); } } -- 2.11.0