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

possible off by one error #8

Open
mus0u opened this issue Aug 5, 2014 · 8 comments
Open

possible off by one error #8

mus0u opened this issue Aug 5, 2014 · 8 comments

Comments

@mus0u
Copy link

mus0u commented Aug 5, 2014

i believe the age count is off by one day. The year total rolled over the day before my birthday.

@aarohmankad
Copy link

I've experienced the same issue. It's still not fixed.

@sylvia43
Copy link

Is this still an issue?

@aarohmankad
Copy link

yup. Hasn't been patched

@maccman
Copy link
Owner

maccman commented Sep 30, 2014

Pull requests welcome :)

@mus0u
Copy link
Author

mus0u commented Oct 1, 2014

If nobody gets to this before I do I will submit a PR when I get a moment.

@aarohmankad
Copy link

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

@aarohmankad
Copy link

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.

@aarohmankad
Copy link

Feedback would be appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants