mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 17:51:24 +01:00
Fix for incorrect mapfile date (#510)
This commit is contained in:
parent
f7ed40518d
commit
086a732895
1 changed files with 2 additions and 2 deletions
|
|
@ -551,8 +551,8 @@ function getFileName(dataType) {
|
||||||
const type = dataType ? dataType + " " : "";
|
const type = dataType ? dataType + " " : "";
|
||||||
const date = new Date();
|
const date = new Date();
|
||||||
const year = date.getFullYear();
|
const year = date.getFullYear();
|
||||||
const month = formatTime(date.getMonth());
|
const month = formatTime(date.getMonth() + 1);
|
||||||
const day = formatTime(date.getDay());
|
const day = formatTime(date.getDate());
|
||||||
const hour = formatTime(date.getHours());
|
const hour = formatTime(date.getHours());
|
||||||
const minutes = formatTime(date.getMinutes());
|
const minutes = formatTime(date.getMinutes());
|
||||||
const dateString = [year, month, day, hour, minutes].join('-');
|
const dateString = [year, month, day, hour, minutes].join('-');
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue