Directly using os.date instead of localizing iit

This commit is contained in:
zykem
2025-04-29 00:02:50 +02:00
committed by GitHub
parent a91e17dee9
commit 05769c6ac8
+1 -2
View File
@@ -65,8 +65,7 @@ local function checkDOBFormat(dob)
return false
end
local currentDate = os.date("*t")
local currentYear = currentDate.year
local currentYear = os.date("*t").year
local minYear = currentYear - Config.MaxAge
local maxYear = currentYear - 18