From de5d210b04d463791aa5c1d46bca48f68ccbb9cd Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Tue, 13 Jun 2023 17:32:01 -0700 Subject: [PATCH] fix: :adhesive_bandage: day isn't decreased by 1 --- packages/client/src/components/MkDialog.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/client/src/components/MkDialog.vue b/packages/client/src/components/MkDialog.vue index d0d42ac037..20f0b9a74d 100644 --- a/packages/client/src/components/MkDialog.vue +++ b/packages/client/src/components/MkDialog.vue @@ -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}`; }