From 7ce8c285cb5b2d13e95a17be78ecbd52f3c7d9db Mon Sep 17 00:00:00 2001 From: Samuel Koch Date: Mon, 13 Nov 2023 05:07:05 -0300 Subject: fix(date): ensures correct range for birthdate (#2535) --- src/modules/date/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules') diff --git a/src/modules/date/index.ts b/src/modules/date/index.ts index 69854688..d79da51f 100644 --- a/src/modules/date/index.ts +++ b/src/modules/date/index.ts @@ -890,7 +890,7 @@ export class SimpleDateModule extends SimpleModuleBase { options.min ?? refYear - 80 ); max = new Date(Date.UTC(0, 11, 30)).setUTCFullYear( - options.max ?? refYear - 18 + options.max ?? refYear - 19 ); } -- cgit v1.2.3