X-Git-Url: https://code.wpia.club/?p=gigi.git;a=blobdiff_plain;f=src%2Fclub%2Fwpia%2Fgigi%2Fpages%2Fmain%2FSignup.java;fp=src%2Fclub%2Fwpia%2Fgigi%2Fpages%2Fmain%2FSignup.java;h=746fd803a6bee2790cd6f37c2ac4070ee8a47fde;hp=8c070782278a9dafcaca76fd0d1dcdf9d0919454;hb=10e752c710c50035de036a79bc26fbedc7c8a460;hpb=b2028692f1f0a3fa3d78f0dc8b81d7fdc14f6865 diff --git a/src/club/wpia/gigi/pages/main/Signup.java b/src/club/wpia/gigi/pages/main/Signup.java index 8c070782..746fd803 100644 --- a/src/club/wpia/gigi/pages/main/Signup.java +++ b/src/club/wpia/gigi/pages/main/Signup.java @@ -120,7 +120,7 @@ public class Signup extends Form { ga.mergeInto(new GigiApiException("Entered date of birth is below the restricted age requirements.")); } - if (CalendarUtil.isOfAge(myDoB.getDate(), User.MAXIMUM_PLAUSIBLE_AGE)) { + if (CalendarUtil.isYearsInFuture(myDoB.getDate().end(), User.MAXIMUM_PLAUSIBLE_AGE)) { ga.mergeInto(new GigiApiException("Entered date of birth exceeds the maximum age set in our policies. Please check your DoB is correct and contact support if the issue persists.")); }