From 3c6fdd0b5992ccafc1f05ebeaa9f1ae8341b0c3e Mon Sep 17 00:00:00 2001 From: Lynixenn Date: Tue, 17 Dec 2024 22:21:53 +0100 Subject: [PATCH] Fixed account_created format --- api/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/main.ts b/api/main.ts index 82f367f..ec72002 100644 --- a/api/main.ts +++ b/api/main.ts @@ -154,7 +154,7 @@ async function api_register(ctx: Context): Promise { const body = ctx.request.body; const result = await body.json(); const { username, password, userGroup, displayname, user_email, firstname, surname} = result; - const account_created = `${Math.floor(Date.now() / 1000)}${new Date().toLocaleDateString('en-GB').split('/').join('.')}`; + const account_created = `${Math.floor(Date.now() / 1000)}-${new Date().toLocaleDateString('en-GB').split('/').join('-')}`; if ( !username || !password || !userGroup || !displayname || !user_email || !firstname || !surname) {