fix: 🩹 day isn't decreased by 1
This commit is contained in:
parent
6a6f5e57da
commit
de5d210b04
1 changed files with 1 additions and 1 deletions
|
@ -289,7 +289,7 @@ function onInputKeydown(evt: KeyboardEvent) {
|
||||||
function formatDateToYYYYMMDD(date) {
|
function formatDateToYYYYMMDD(date) {
|
||||||
const year = date.getFullYear();
|
const year = date.getFullYear();
|
||||||
const month = ("0" + (date.getMonth() + 1)).slice(-2);
|
const month = ("0" + (date.getMonth() + 1)).slice(-2);
|
||||||
const day = ("0" + date.getDate()).slice(-2);
|
const day = ("0" + (date.getDate() + 1)).slice(-2);
|
||||||
return `${year}-${month}-${day}`;
|
return `${year}-${month}-${day}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue