Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in calculating age #6

Closed
pejuam opened this issue Jan 13, 2017 · 2 comments
Closed

Bug in calculating age #6

pejuam opened this issue Jan 13, 2017 · 2 comments
Assignees
Labels

Comments

@pejuam
Copy link

pejuam commented Jan 13, 2017

As today's date is 2017-01-13, age is calculated wrong for ssn shown below:

FinnishSSN.parse('050295-1111').ageInYears
<- 22

However, if the day part of the birthdate is greater than day of the current date, it works:

FinnishSSN.parse('150295-1212').ageInYears
<- 21

@vkomulai
Copy link
Owner

Thanks for the report. I will fix this during the weekend.

@vkomulai vkomulai self-assigned this Jan 15, 2017
@vkomulai vkomulai added the bug label Jan 15, 2017
vkomulai added a commit that referenced this issue Jan 19, 2017
@vkomulai
Copy link
Owner

Fixed

sebazai pushed a commit that referenced this issue Sep 20, 2023
Update dependency @types/chai to v4.2.21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants