getDateTimeByTimezone($this->created_at); } public function getUpdatedAtByTimezoneAttribute(): string { return $this->getDateTimeByTimezone($this->updated_at); } public function getDateTimeByTimezone(?Carbon $value = null): ?string { if ($value && auth()->user() && auth()->user()->timezone) { try { return date_with_timezone($value, auth()->user()->timezone); } catch (Exception) { } } return $value; } }