Skip to content

Commit

Permalink
fix: legacy backup file name (#1365)
Browse files Browse the repository at this point in the history
in android file system you can't use the char  ' : ' 
so lnreader file name:
"Inreader_backup_YYYY-MM-DD_HH:mm.json"
you can't write it as a file. 
so i edit it to looks like
"Inreader_backup_YYYY-MM-DD_HH_mm.json"
  • Loading branch information
MOA-YAD authored Dec 27, 2024
1 parent 73fcba0 commit e01cbef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/backup/legacy/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const createBackup = async () => {
if (!folder) {
return;
}
const datetime = dayjs().format('YYYY-MM-DD_HH:mm');
const datetime = dayjs().format('YYYY-MM-DD_HH_mm');
const fileName = 'lnreader_backup_' + datetime + '.json';
await FileManager.writeFile(
folder + '/' + fileName,
Expand Down

0 comments on commit e01cbef

Please sign in to comment.