From 086a732895b8e9973a8c404b94590480470ffff6 Mon Sep 17 00:00:00 2001 From: evolvedexperiment <55178666+evolvedexperiment@users.noreply.github.com> Date: Thu, 20 Aug 2020 21:23:30 +0200 Subject: [PATCH] Fix for incorrect mapfile date (#510) --- 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('-');