From 6690fed3afa88b120c8f1972358d833d7d055170 Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Sun, 3 Dec 2023 16:06:33 -0800
Subject: fix(birthdays): use months day count

---
 src/lib/Tools/CharacterBirthdays.svelte | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/lib/Tools/CharacterBirthdays.svelte')

diff --git a/src/lib/Tools/CharacterBirthdays.svelte b/src/lib/Tools/CharacterBirthdays.svelte
index 7723432e..30f00405 100644
--- a/src/lib/Tools/CharacterBirthdays.svelte
+++ b/src/lib/Tools/CharacterBirthdays.svelte
@@ -74,7 +74,7 @@
 			</select>
 
 			<select bind:value={day}>
-				{#each Array.from({ length: 31 }, (_, i) => i + 1) as day}
+				{#each Array.from({ length: new Date(0, month, 0).getDate() }, (_, i) => i + 1) as day}
 					<option value={day}>{day}</option>
 				{/each}
 			</select>
-- 
cgit v1.2.3

