Skip to content

Commit 44ff99e

Browse files
committed
Use correct time, not an empty time
1 parent 875358a commit 44ff99e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Services/Backups/InitiateBackupService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function handle(Server $server, string $name = null): Backup
5858
$backup = $this->repository->create([
5959
'server_id' => $server->id,
6060
'uuid' => Uuid::uuid4()->toString(),
61-
'name' => trim($name) ?: sprintf('Backup at %s', CarbonImmutable::create()->toDateTimeString()),
61+
'name' => trim($name) ?: sprintf('Backup at %s', CarbonImmutable::now()->toDateTimeString()),
6262
'ignored_files' => $this->ignoredFiles ?? '',
6363
'disk' => 'local',
6464
], true, true);

0 commit comments

Comments
 (0)