Merge pull request #4401 from beganovich/v5-fix-issue-with-client-dateform

(v5) Apply client's date format on the tasks
This commit is contained in:
Benjamin Beganović 2020-12-01 15:27:49 +01:00 committed by GitHub
commit a5aa21f441
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -251,8 +251,8 @@ trait DesignHelpers
foreach ($_logs as $log) {
$logs[] = sprintf(
'%s - %s',
\Carbon\Carbon::createFromTimestamp($log[0])->format($task->client->date_format() . ' h:i:s'),
\Carbon\Carbon::createFromTimestamp($log[1])->format($task->client->date_format() . ' h:i:s')
\Carbon\Carbon::createFromTimestamp($log[0])->format($this->entity->client->date_format() . ' h:i:s'),
\Carbon\Carbon::createFromTimestamp($log[1])->format($this->entity->client->date_format() . ' h:i:s')
);
}