diff --git a/src/editor/components/datevisibilityinput.tsx b/src/editor/components/datevisibilityinput.tsx
index 3406fb610c4046e1f91c90934ec6b5ce0cfa8f2f..f3b670121554d36c28935c534778e2dceb5b69d8 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")
         );