From bccbeda83af6860f3e46dbb9e19881cd3f4a215c Mon Sep 17 00:00:00 2001 From: Korina Cordero Date: Wed, 7 Aug 2019 05:55:52 +0000 Subject: [PATCH] Remove the time element from date purchase, date expiry, and date claim. #245 --- src/Controller/APIController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Controller/APIController.php b/src/Controller/APIController.php index b43c0ad7..1032ecdc 100644 --- a/src/Controller/APIController.php +++ b/src/Controller/APIController.php @@ -1946,10 +1946,10 @@ class APIController extends Controller $sap_batt = $warranty->getSAPBattery()->getID(); } if (!(is_null($warranty->getDateClaim()))) { - $claim_date = $warranty->getDateClaim()->format("d M Y g:i A"); + $claim_date = $warranty->getDateClaim()->format("d M Y"); } if (!(is_null($warranty->getDateExpire()))) { - $expiry_date = $warranty->getDateExpire()->format("d M Y g:i A"); + $expiry_date = $warranty->getDateExpire()->format("d M Y"); } $warr[] = [ @@ -1965,7 +1965,7 @@ class APIController extends Controller 'sap_battery' => $sap_batt, 'status' => $warranty->getStatus(), 'date_create' => $warranty->getDateCreate()->format("d M Y g:i A"), - 'date_purchase' => $warranty->getDatePurchase()->format("d M Y g:i A"), + 'date_purchase' => $warranty->getDatePurchase()->format("d M Y"), 'date_expire' => $expiry_date, 'date_claim' => $claim_date, 'claim_from' => $warranty->getClaimedFrom(),