diff --git a/src/ConnectedAccount.php b/src/ConnectedAccount.php index 222c92e7..0e17868f 100644 --- a/src/ConnectedAccount.php +++ b/src/ConnectedAccount.php @@ -37,7 +37,7 @@ public function getSharedInertiaData() return [ 'id' => $this->id, 'provider' => $this->provider, - 'created_at' => (new \DateTime($this->created_at))->format('d/m/Y H:i'), + 'created_at' => optional($this->created_at)->diffForHumans(), ]; } } diff --git a/src/Http/Livewire/ConnectedAccountsForm.php b/src/Http/Livewire/ConnectedAccountsForm.php index e134de64..e93f429d 100644 --- a/src/Http/Livewire/ConnectedAccountsForm.php +++ b/src/Http/Livewire/ConnectedAccountsForm.php @@ -88,7 +88,7 @@ public function getAccountsProperty() return (object) [ 'id' => $account->id, 'provider_name' => $account->provider, - 'created_at' => (new \DateTime($account->created_at))->format('d/m/Y H:i'), + 'created_at' => optional($account->created_at)->diffForHumans(), ]; }); } diff --git a/stubs/inertia/resources/js/Socialstream/ConnectedAccount.vue b/stubs/inertia/resources/js/Socialstream/ConnectedAccount.vue index d6f664a8..8eb3614e 100644 --- a/stubs/inertia/resources/js/Socialstream/ConnectedAccount.vue +++ b/stubs/inertia/resources/js/Socialstream/ConnectedAccount.vue @@ -17,7 +17,7 @@