Skip to content

Commit e700096

Browse files
authored
Merge pull request #128 from MarioVillani/main
Fix Timezone/Added Italian Language
2 parents 1609632 + 537f1a3 commit e700096

File tree

2 files changed

+46
-1
lines changed

2 files changed

+46
-1
lines changed

src/app/Http/Controllers/BackupController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function index()
4040
'filePath' => $file,
4141
'fileName' => $fileName,
4242
'fileSize' => round((int) $disk->size($file) / 1048576, 2),
43-
'lastModified' => Carbon::createFromTimeStamp($disk->lastModified($file))->isoFormat('DD MMMM YYYY, HH:mm'),
43+
'lastModified' => Carbon::createFromTimeStamp($disk->lastModified($file), config('app.timezone'))->isoFormat('DD MMMM YYYY, HH:mm'),
4444
'diskName' => $diskName,
4545
'downloadLink' => is_a($disk->getAdapter(), LocalFilesystemAdapter::class, true) ? $downloadLink : null,
4646
'deleteLink' => $deleteLink,

src/resources/lang/it/backup.php

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
<?php
2+
3+
return [
4+
5+
/*
6+
|--------------------------------------------------------------------------
7+
| Backup Language Lines
8+
|--------------------------------------------------------------------------
9+
|
10+
| The following language lines are used by the backup system.
11+
| You are free to change them to anything you want to customize your views to better match your application.
12+
|
13+
*/
14+
15+
'backup' => 'Backup',
16+
'backups' => 'Backups',
17+
'create_a_new_backup' => 'Crea un nuovo backup',
18+
'existing_backups' => 'Backups esistenti',
19+
'date' => 'Data',
20+
'file_size' => 'Dimensione file',
21+
'actions' => 'Azioni',
22+
'download' => 'Download',
23+
'delete' => 'Elimina',
24+
'delete_confirm' => 'Sei sicuro di voler eliminare questo file di backup?',
25+
'delete_confirmation_title' => 'Fatto',
26+
'delete_confirmation_message' => 'Il file di backup è stato eliminato.',
27+
'delete_error_title' => 'Errore',
28+
'delete_error_message' => 'Il file di backup NON è stato eliminato.',
29+
'delete_cancel_title' => 'Tutto a posto',
30+
'delete_cancel_message' => 'Il file di backup NON è stato eliminato.',
31+
'create_confirmation_title' => 'Processo di backup avviato.',
32+
'create_error_title' => 'Errore backup',
33+
'create_error_message' => 'Non è stato possibile creare il file di backup.',
34+
'create_warning_title' => 'Errore sconosciuto',
35+
'create_warning_message' => 'Il backup potrebbe NON essere stato creato. Per favore controlla i log file per dettagli.',
36+
'location' => 'Posizione',
37+
'no_disks_configured' => 'Nessun disco per il backup configurato in config/backup.php',
38+
'backup_doesnt_exist' => 'Il file di backup non esiste.',
39+
'only_local_downloads_supported' => 'Sono supportati solo i download dal file system locale.',
40+
'unknown_disk' => 'Disco sconosciuto.',
41+
'create_started_message' => 'Per favore attendi alcuni minuti per il completamento.',
42+
'create_completed_title' => 'Il backup è completato.',
43+
'download_confirmation_title' => 'Processo di download avviato.',
44+
'download_error_title' => 'Errore download',
45+
];

0 commit comments

Comments
 (0)