From f77b105419e0bd6aba91c8554eafea3c22f7a00f Mon Sep 17 00:00:00 2001 From: zykem#0643 <86602828+Zykem@users.noreply.github.com> Date: Mon, 28 Apr 2025 19:04:21 +0200 Subject: [PATCH] Update main.lua --- [core]/esx_identity/server/main.lua | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/[core]/esx_identity/server/main.lua b/[core]/esx_identity/server/main.lua index d4530f47..6c111e74 100644 --- a/[core]/esx_identity/server/main.lua +++ b/[core]/esx_identity/server/main.lua @@ -83,11 +83,7 @@ local function checkDOBFormat(dob) if month < 1 or month > 12 then return false end -- Days in each month (starting from January.) - local daysInMonth = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 } - if month == 2 and isLeapYear(year) then - daysInMonth[2] = 29 - end - + local daysInMonth = { 31, isLeapYear(year) and 29 or 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 } return day >= 1 and day <= daysInMonth[month] end