From 5ee9038da1a33daa0ced1004f989b6ca551311d8 Mon Sep 17 00:00:00 2001
From: Maximilian Giller <m.giller@tu-bs.de>
Date: Sat, 1 Oct 2022 00:20:17 +0200
Subject: [PATCH] Fixed offset

---
 src/editor/components/datevisibilityinput.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/editor/components/datevisibilityinput.tsx b/src/editor/components/datevisibilityinput.tsx
index 3406fb6..f3b6701 100644
--- a/src/editor/components/datevisibilityinput.tsx
+++ b/src/editor/components/datevisibilityinput.tsx
@@ -34,7 +34,7 @@ function DateVisibilityInput({ date, onDateChange }: DateVisibilityInputProps) {
         return (
             date.getFullYear() +
             "-" +
-            date.getMonth().toString().padStart(2, "0") +
+            (date.getMonth() + 1).toString().padStart(2, "0") +
             "-" +
             date.getDate().toString().padStart(2, "0")
         );
-- 
GitLab