Use correct time, not an empty time

This commit is contained in:
Dane Everitt 2020-04-04 12:31:21 -07:00
parent 875358a106
commit 44ff99e83d
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53

View file

@ -58,7 +58,7 @@ class InitiateBackupService
$backup = $this->repository->create([
'server_id' => $server->id,
'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 ?? '',
'disk' => 'local',
], true, true);