From 27226af56ede495d45acbde714a317810eab4266 Mon Sep 17 00:00:00 2001 From: Spectralitree <72747870+Spectralitree@users.noreply.github.com> Date: Sun, 9 Jan 2022 15:01:03 +0100 Subject: [PATCH] fix: correctly submit a birthday divided by / instead of - --- src/lib/member/Edit.svelte | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib/member/Edit.svelte b/src/lib/member/Edit.svelte index 8f697381..4c7b53e3 100644 --- a/src/lib/member/Edit.svelte +++ b/src/lib/member/Edit.svelte @@ -42,6 +42,9 @@ err.push(`${data.birthday} is not a valid date, please use the following format: YYYY-MM-DD. (example: 2019-07-21)`); } } + if (data.birthday.includes('/')) { + data.birthday.replace('/', '-'); + } } err = err;