Merge pull request #13230 from snipe/fixes/windows_backup_filename_colon_wtf_issue

Fixed windows backup filename - swapped colon in timestamp to hyphen to handle windows filesystems
This commit is contained in:
snipe 2023-06-29 20:37:09 +01:00 committed by GitHub
commit e236bf412c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1136,7 +1136,7 @@ class SettingsController extends Controller
public function postBackups()
{
if (! config('app.lock_passwords')) {
Artisan::call('snipeit:backup', ['--filename' => 'manual-backup-'.date('Y-m-d-H:i:s')]);
Artisan::call('snipeit:backup', ['--filename' => 'manual-backup-'.date('Y-m-d-H-i-s')]);
$output = Artisan::output();
// Backup completed