From e01cbefdaee133ea7f709e11ccb18bc0397cd972 Mon Sep 17 00:00:00 2001 From: MOAYAD Date: Fri, 27 Dec 2024 18:17:18 +0300 Subject: [PATCH] fix: legacy backup file name (#1365) 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" --- src/services/backup/legacy/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/backup/legacy/index.ts b/src/services/backup/legacy/index.ts index 73067dcaf..c417fd907 100644 --- a/src/services/backup/legacy/index.ts +++ b/src/services/backup/legacy/index.ts @@ -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,