From bcc1ace9198f38a474f66046455f4e05ef986bce Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Fri, 17 Apr 2020 17:44:03 +0300 Subject: [PATCH] bugfix... Signed-off-by: Alex A. Naanou --- ui (gen4)/features/filesystem.js | 2 +- ui (gen4)/lib/util.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ui (gen4)/features/filesystem.js b/ui (gen4)/features/filesystem.js index 65f971bd..c0cd32e0 100755 --- a/ui (gen4)/features/filesystem.js +++ b/ui (gen4)/features/filesystem.js @@ -1627,7 +1627,7 @@ var FileSystemWriterActions = actions.Actions({ logger = logger || this.logger logger = logger && logger.push('Backup') - do{ + do { var d = Date.timeStamp() var backup_dir = `${pathlib.dirname(path)}/.${pathlib.basename(path)}.${d}` } while(fse.existsSync(backup_dir)) diff --git a/ui (gen4)/lib/util.js b/ui (gen4)/lib/util.js index fa02c8a3..4242a26f 100755 --- a/ui (gen4)/lib/util.js +++ b/ui (gen4)/lib/util.js @@ -336,7 +336,7 @@ module.patchDate = function(date){ date.prototype.toShortDate = function(show_ms){ return '' + this.getFullYear() - +'-'+ ('0'+this.getMonth()+1).slice(-2) + +'-'+ ('0'+(this.getMonth()+1)).slice(-2) +'-'+ ('0'+this.getDate()).slice(-2) +' '+ ('0'+this.getHours()).slice(-2) +':'+ ('0'+this.getMinutes()).slice(-2) @@ -347,7 +347,7 @@ module.patchDate = function(date){ date.prototype.getTimeStamp = function(show_ms){ return '' + this.getFullYear() - + ('0'+this.getMonth()+1).slice(-2) + + ('0'+(this.getMonth()+1)).slice(-2) + ('0'+this.getDate()).slice(-2) + ('0'+this.getHours()).slice(-2) + ('0'+this.getMinutes()).slice(-2)