transaction date fix

This commit is contained in:
Čarodej
2022-02-28 09:08:51 +01:00
parent c2e4b50df5
commit dee1614297
@@ -30,8 +30,8 @@ class TransactionResource extends JsonResource
'metadata' => $this->metadata 'metadata' => $this->metadata
? resolve(FormatUsageEstimatesAction::class)($this->currency, $this->metadata) ? resolve(FormatUsageEstimatesAction::class)($this->currency, $this->metadata)
: null, : null,
'created_at' => $this->created_at->formatLocalized('d. M. Y'), 'created_at' => format_date($this->created_at, 'd. M. Y'),
'updated_at' => $this->updated_at, 'updated_at' => format_date($this->updated_at, 'd. M. Y'),
], ],
'relationships' => [ 'relationships' => [
$this->mergeWhen($this->user && $this->user->settings, fn () => [ $this->mergeWhen($this->user && $this->user->settings, fn () => [