Fix months being off by a month

This commit is contained in:
MatthiasSaihttam 2020-11-03 15:37:46 -05:00
parent 602a5cb3e1
commit aff8b300e1
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@
if (minutes.length < 2) {
minutes = "0" + minutes;
}
timestampEl.textContent = `${time.getFullYear()}-${time.getMonth()}-${time.getDate()}, ${hours}:${minutes}${ampm}`
timestampEl.textContent = `${time.getFullYear()}-${time.getMonth()+1}-${time.getDate()}, ${hours}:${minutes}${ampm}`
}
</script>
</body>