mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-11-28 14:58:09 +09:00
fix: 🩹 day isn't decreased by 1
This commit is contained in:
parent
39708a0a1d
commit
76a81d1451
@ -289,7 +289,7 @@ function onInputKeydown(evt: KeyboardEvent) {
|
||||
function formatDateToYYYYMMDD(date) {
|
||||
const year = date.getFullYear();
|
||||
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}`;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user