diff --git a/app/Http/Resources/V1/TimeEntry/TimeEntryResource.php b/app/Http/Resources/V1/TimeEntry/TimeEntryResource.php index dc0ba1a5..d56bfbe5 100644 --- a/app/Http/Resources/V1/TimeEntry/TimeEntryResource.php +++ b/app/Http/Resources/V1/TimeEntry/TimeEntryResource.php @@ -32,7 +32,7 @@ class TimeEntryResource extends BaseResource */ 'end' => $this->formatDateTime($this->resource->end), /** @var int|null $duration Duration of time entry in seconds */ - 'duration' => $this->resource->getDuration()?->seconds, + 'duration' => (int) $this->resource->getDuration()?->totalSeconds, /** @var string|null $description Description of time entry */ 'description' => $this->resource->description, /** @var string|null $task_id ID of task */