-
Notifications
You must be signed in to change notification settings - Fork 86
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
possible off by one error #8
Comments
I've experienced the same issue. It's still not fixed. |
Is this still an issue? |
yup. Hasn't been patched |
Pull requests welcome :) |
If nobody gets to this before I do I will submit a PR when I get a moment. |
Where do we think the error is? I think it could be the duration / (milliseconds in a year), most likely suspect because it's a hard coded number. https://github.com/maccman/motivation/blob/master/app/app.js#L57 |
I've submitted a pull request with a hackish change (fine tuning the milliseconds). I've only checked by changing the milliseconds and changing the time on my computer. It just ticks over at a little past 12am. I implore multiple tests are taken before merging. |
Feedback would be appreciated. |
i believe the age count is off by one day. The year total rolled over the day before my birthday.
The text was updated successfully, but these errors were encountered: