From bba7902511ce532930fe6dd565c38b8cbbc48d36 Mon Sep 17 00:00:00 2001 From: Chris Troutner Date: Mon, 8 Jun 2020 09:59:30 -0700 Subject: [PATCH] fix(logs): Fixing log naming issue --- src/modules/logapi/controller.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/logapi/controller.js b/src/modules/logapi/controller.js index a661330..5759f44 100644 --- a/src/modules/logapi/controller.js +++ b/src/modules/logapi/controller.js @@ -132,7 +132,8 @@ class LogsApi { generateFileName () { try { const now = new Date() - const thisDate = now.getDate() + let thisDate = now.getDate() + thisDate = ('0' + thisDate).slice(-2) let thisMonth = now.getMonth() + 1 thisMonth = ('0' + thisMonth).slice(-2)