From e24c80f20eaa5d39ddd054931122393e5970db37 Mon Sep 17 00:00:00 2001 From: Evolvedexperiment Date: Wed, 19 Aug 2020 08:27:55 +0000 Subject: [PATCH] Fix for incorrect mapfile date --- modules/ui/editors.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/ui/editors.js b/modules/ui/editors.js index 58e49370..fba98560 100644 --- a/modules/ui/editors.js +++ b/modules/ui/editors.js @@ -551,8 +551,8 @@ function getFileName(dataType) { const type = dataType ? dataType + " " : ""; const date = new Date(); const year = date.getFullYear(); - const month = formatTime(date.getMonth()); - const day = formatTime(date.getDay()); + const month = formatTime(date.getMonth() + 1); + const day = formatTime(date.getDate()); const hour = formatTime(date.getHours()); const minutes = formatTime(date.getMinutes()); const dateString = [year, month, day, hour, minutes].join('-');