Closed vahurkrouverk closed 2 months ago
@vahurkrouverk I tried and seems to work...at least in here https://demo.dialob.io/fill/bbbe1792a54b7ced8a726ead5fcde6fd using https://telepartikkeli.azurewebsites.net/tunnusgeneraattori to create test Hetu´s..
No.. This change is about how birthdate is calculated. Current birthDateFromHetu interprets 010101B001A as 1.1.2101, but after this change it should be 1.1.2001.
Title is bit misleading, forgot to fix it, isHetu works OK, problem is only in bith date calculation.
Finland introduced new separators for personal identity codes in December 2023 https://dvv.fi/en/reform-of-personal-identity-code
This means that function iio.dialob.rule.parser.function.DefaultFunctions.birthDateFromHetu(String) implementation needs updates to calculate age correctly.