From 7dcac78baa2a8729ad9b51675c9bd61c5ab88021 Mon Sep 17 00:00:00 2001 From: MHarmony Date: Tue, 7 Sep 2021 12:06:10 -0400 Subject: [PATCH] JavaScript month index is 0-based sadge --- src/settings/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/settings/index.js b/src/settings/index.js index 1bed6686..f744d202 100644 --- a/src/settings/index.js +++ b/src/settings/index.js @@ -389,7 +389,7 @@ export default class SettingsManager extends Module { async generateBackupFile() { const now = new Date(), - timestamp = `${now.getFullYear()}-${now.getMonth()}-${now.getDate()}`; + timestamp = `${now.getFullYear()}-${now.getMonth() + 1}-${now.getDate()}`; if ( await this._needsZipBackup() ) { const blob = await this._getZipBackup();