You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that the calculation of the age is wrong. Given that "today" is defined as 04.11.2024 and that the personal number is "19841120-0788":
Expected outcome
The age should be 39, as the person did not have birthday yet (20. November).
Actual outcome
Description
The calculation only takes into account the years (2024 - 1984) but does not account for the month. I am not sure this is maybe the "age" definition according to some law or personal number requirement. But if not, it is most likely a bug.
If you confirm that it is a bug, I can create a PR fixing the issue.
Context
It seems that the calculation of the age is wrong. Given that "today" is defined as 04.11.2024 and that the personal number is "19841120-0788":
Expected outcome
The age should be 39, as the person did not have birthday yet (20. November).
Actual outcome
Description
The calculation only takes into account the years (2024 - 1984) but does not account for the month. I am not sure this is maybe the "age" definition according to some law or personal number requirement. But if not, it is most likely a bug.
If you confirm that it is a bug, I can create a PR fixing the issue.
Minimal reproducible test case
Set system time to 04.10.2024, any time.
The text was updated successfully, but these errors were encountered: