Use correct time, not an empty time
This commit is contained in:
parent
875358a106
commit
44ff99e83d
|
@ -58,7 +58,7 @@ class InitiateBackupService
|
||||||
$backup = $this->repository->create([
|
$backup = $this->repository->create([
|
||||||
'server_id' => $server->id,
|
'server_id' => $server->id,
|
||||||
'uuid' => Uuid::uuid4()->toString(),
|
'uuid' => Uuid::uuid4()->toString(),
|
||||||
'name' => trim($name) ?: sprintf('Backup at %s', CarbonImmutable::create()->toDateTimeString()),
|
'name' => trim($name) ?: sprintf('Backup at %s', CarbonImmutable::now()->toDateTimeString()),
|
||||||
'ignored_files' => $this->ignoredFiles ?? '',
|
'ignored_files' => $this->ignoredFiles ?? '',
|
||||||
'disk' => 'local',
|
'disk' => 'local',
|
||||||
], true, true);
|
], true, true);
|
||||||
|
|
Loading…
Reference in New Issue