From e49eae290a1be7b49f90c422ba98660e8d3ea309 Mon Sep 17 00:00:00 2001
From: Alan Bell <alanbell@ubuntu.com>
Date: Tue, 26 Apr 2016 12:56:22 +0100
Subject: [PATCH] treat end dates uitype 23 like other dates

---
 modules/Reports/ReportUtils.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/Reports/ReportUtils.php b/modules/Reports/ReportUtils.php
index eb27fb214..a40486bd5 100644
--- a/modules/Reports/ReportUtils.php
+++ b/modules/Reports/ReportUtils.php
@@ -132,7 +132,7 @@ function getReportFieldValue ($report, $picklistArray, $dbField, $valueArray, $f
 			}
 			$date = new DateTimeField($value.' '.$endTime);
 			$fieldvalue = $date->getDisplayDate();
-		} else if(!($field->getUIType() == '5')) {
+		} else if(!($field->getUIType() == '5'||$field->getUiType() =='23')) {
             $date = new DateTimeField($fieldvalue);
             $fieldvalue = $date->getDisplayDateTimeValue();
 		}
@@ -210,4 +210,4 @@ function getReportFieldValue ($report, $picklistArray, $dbField, $valueArray, $f
 	return htmlentities($fieldvalue, ENT_QUOTES, $default_charset);
 }
 
-?>
\ No newline at end of file
+?>
-- 
GitLab