Skip to content

Commit

Permalink
Merge pull request #125 from Laravel-Backpack/remove-deprecated-forma…
Browse files Browse the repository at this point in the history
…tLocalized-method

Remove deprecated format localized method
  • Loading branch information
pxpm authored Mar 25, 2024
2 parents 63e41c7 + d5cdc34 commit 567f120
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/app/Http/Controllers/BackupController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,19 @@

namespace Backpack\BackupManager\app\Http\Controllers;

use Artisan;
use Carbon\Carbon;
use Exception;
use Illuminate\Http\Request;
use Illuminate\Routing\Controller;
use Illuminate\Support\Facades\Artisan;
use Illuminate\Support\Facades\Log;
use Illuminate\Support\Facades\Storage;
use League\Flysystem\Local\LocalFilesystemAdapter;
use Log;
use Request;
use Storage;

class BackupController extends Controller
{
protected array $data;

public function index()
{
if (!count(config('backup.backup.destination.disks'))) {
Expand All @@ -38,7 +40,7 @@ public function index()
'filePath' => $file,
'fileName' => $fileName,
'fileSize' => round((int) $disk->size($file) / 1048576, 2),
'lastModified' => Carbon::createFromTimeStamp($disk->lastModified($file))->formatLocalized('%d %B %Y, %H:%M'),
'lastModified' => Carbon::createFromTimeStamp($disk->lastModified($file))->isoFormat('DD MMMM YYYY, HH:mm'),
'diskName' => $diskName,
'downloadLink' => is_a($disk->getAdapter(), LocalFilesystemAdapter::class, true) ? $downloadLink : null,
'deleteLink' => $deleteLink,
Expand Down

0 comments on commit 567f120

Please sign in to comment.