From ebdb52da920aa805eefe5dc91d0079a942da1c35 Mon Sep 17 00:00:00 2001 From: btwlouis <56355239+btwlouis@users.noreply.github.com> Date: Fri, 20 Dec 2024 13:55:19 +0100 Subject: [PATCH] fix: zulu timestamp --- src/Traits/PayPalAPI/Reporting.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Traits/PayPalAPI/Reporting.php b/src/Traits/PayPalAPI/Reporting.php index 3ae76bc7..160a7255 100644 --- a/src/Traits/PayPalAPI/Reporting.php +++ b/src/Traits/PayPalAPI/Reporting.php @@ -46,7 +46,7 @@ public function listTransactions(array $filters, string $fields = 'all') */ public function listBalances(string $date = '', string $balance_currency = '') { - $date = empty($date) ? Carbon::now()->toIso8601String() : Carbon::parse($date)->toIso8601String(); + $date = empty($date) ? Carbon::now()->toIso8601ZuluString() : Carbon::parse($date)->toIso8601ZuluString(); $currency = empty($balance_currency) ? $this->getCurrency() : $balance_currency; $this->apiEndPoint = "v1/reporting/balances?currency_code={$currency}&as_of_time={$date}";