From 76a81d1451936c95e79c4198b0fe4d5794091887 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 d0d42ac03..20f0b9a74 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}`; }