From fd6fabf11b9fdeb8f00fe9fef870e729d795eee9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tom=C3=A1=C5=A1?= <git@imaniti.org>
Date: Fri, 2 Dec 2022 19:51:46 +0100
Subject: [PATCH] fix month

---
 content/static/js/main.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/content/static/js/main.js b/content/static/js/main.js
index 8ae649c..7031d04 100644
--- a/content/static/js/main.js
+++ b/content/static/js/main.js
@@ -190,7 +190,7 @@ const fillCanvas = async () => {
 	const formattedBirthDate = (
 		birthDate.getDate()
 		+ ". "
-		+ birthDate.getMonth()
+		+ birthDate.getMonth() + 1
 		+ ". "
 		+ birthDate.getFullYear()
 	);
@@ -302,7 +302,7 @@ $(window).ready(
 		$("#current-date").val(
 			currentDate.getDate()
 			+ ". "
-			+ currentDate.getMonth()
+			+ currentDate.getMonth() + 1
 			+ ". "
 			+ currentDate.getFullYear()
 		);
-- 
GitLab