style: apply prettier formatting to frontend
Backend CI / Lint & vulns (push) Failing after 1m59s
Backend CI / Tests (push) Successful in 2m1s
Backend CI / Race detector (push) Failing after 4m0s

This commit is contained in:
2026-06-25 13:26:26 +01:00
parent d4664c177c
commit ad0ad253ad
74 changed files with 3927 additions and 2632 deletions
+8 -2
View File
@@ -94,8 +94,14 @@ export function calculateAge(dateOfBirth: string | undefined | null): number | n
const today = new Date();
// Get London date components to ensure correct DST-safe age calculation
const [dobY, dobM, dobD] = dob.toLocaleDateString('en-CA', { timeZone: 'Europe/London' }).split('-').map(Number);
const [todayY, todayM, todayD] = today.toLocaleDateString('en-CA', { timeZone: 'Europe/London' }).split('-').map(Number);
const [dobY, dobM, dobD] = dob
.toLocaleDateString('en-CA', { timeZone: 'Europe/London' })
.split('-')
.map(Number);
const [todayY, todayM, todayD] = today
.toLocaleDateString('en-CA', { timeZone: 'Europe/London' })
.split('-')
.map(Number);
let age = todayY - dobY;
const monthDiff = todayM - dobM;