From fbfaa969b5c8078bdb97a04d64637fafd38ad05a Mon Sep 17 00:00:00 2001 From: Jeremy Schomery Date: Sun, 5 Feb 2017 09:45:44 +0330 Subject: [PATCH] fixes time generation function --- backup/manage/fileSaveLoad.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backup/manage/fileSaveLoad.js b/backup/manage/fileSaveLoad.js index c0a22b9e..40ef9f63 100644 --- a/backup/manage/fileSaveLoad.js +++ b/backup/manage/fileSaveLoad.js @@ -45,7 +45,7 @@ function onLoadFromFileClick(){ function generateFileName(){ var today = new Date(); var dd = '0' + today.getDate(); - var mm = '0' + today.getMonth() + 1; + var mm = '0' + (today.getMonth() + 1); var yyyy = today.getFullYear(); dd = dd.substr(-2);