Skip to content

Commit

Permalink
Fix for incorrect mapfile date (#510)
Browse files Browse the repository at this point in the history
  • Loading branch information
evolvedexperiment authored Aug 20, 2020
1 parent f7ed405 commit 086a732
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/ui/editors.js
Original file line number Diff line number Diff line change
Expand Up @@ -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('-');
Expand Down

0 comments on commit 086a732

Please sign in to comment.