diff --git a/[esx]/esx_identity/html/index.html b/[esx]/esx_identity/html/index.html index 73cd9549..d3cd00de 100644 --- a/[esx]/esx_identity/html/index.html +++ b/[esx]/esx_identity/html/index.html @@ -16,7 +16,7 @@
Last Name

Date of Birth (MM/DD/YYYY)
-
+
Height

@@ -84,7 +84,7 @@ myDOB.style.color = 'black'; } else { - var dateInput = [month, day, year].join('/'); + var dateInput = [day, month, year].join('/'); var regExp = /^(\d{1,2})(\/|-)(\d{1,2})(\/|-)(\d{4})$/; var dateArray = dateInput.match(regExp); diff --git a/[esx]/esx_identity/server/main.lua b/[esx]/esx_identity/server/main.lua index 6219d895..4f28d808 100644 --- a/[esx]/esx_identity/server/main.lua +++ b/[esx]/esx_identity/server/main.lua @@ -444,7 +444,7 @@ end function checkDate(str) if string.match(str, '(%d%d)/(%d%d)/(%d%d%d%d)') ~= nil then - local m, d, y = string.match(str, '(%d+)/(%d+)/(%d+)') + local d, m, y = string.match(str, '(%d+)/(%d+)/(%d+)') m = tonumber(m) d = tonumber(d) y = tonumber(y)