diff --git a/test/unitTests/app/history/HistoryControllerTest.php b/test/unitTests/app/history/HistoryControllerTest.php
index e0e0f72ba30abcd8220e340f26bb836a3da0dbc5..723204fc8656f078120227ee988af53201e200ca 100755
--- a/test/unitTests/app/history/HistoryControllerTest.php
+++ b/test/unitTests/app/history/HistoryControllerTest.php
@@ -36,7 +36,7 @@ class HistoryControllerTest extends TestCase
 
         $aArgs = [
             'startDate' => '15-03-2018',
-            'endDate'   => time()
+            'endDate'   => date('d-m-Y')
         ];
         $fullRequest = $request->withQueryParams($aArgs);
 
@@ -57,7 +57,7 @@ class HistoryControllerTest extends TestCase
 
         $aArgs = [
             'startDate' => '15-03-2018',
-            'endDate'   => time()
+            'endDate'   => date('d-m-Y')
         ];
         $fullRequest = $request->withQueryParams($aArgs);