-
Notifications
You must be signed in to change notification settings - Fork 22
< 8000 bdi class="js-issue-title markdown-title">Wrong time if you workout during midnight #422
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
Comments
And if i correct the csv to restore, the app crashes. Probably it's because it doesn't handle two days in the same workout |
Ah actually this is a safeguard I should put in. The app does not support importing from CSV at all. It is purely an export. The backup / restore functionality is the only way to get data into liftlog. No CSV import will work. Related: #392 |
This problem is an artifact of the fact that Sessions are stored like this:
So as you can see, the exercise sets don't store the date that they were completed at, only the time of day. This does unfortunately lead to these inconsistencies for sessions that cross days :( It would be possible to migrate to a system where sets include the date as well as the time, so will put that on the backlog |
I'm working on a solution but i can't promise it will work |
No worries. I have some guidance on what I was thinking, just a braindump:
If you don't get it working that's okay, I will get to this eventually. Right now my time is taken up by #420 though so it would be at the very least a month away |
i fixed most things here, but there is one annoying bug, after midnight the timer does not reset when you click a new set, and i can't find the code responsible for the reset. |
If you workout during midnight the timestamp changes the hour but not the day:
And then when it calculates the session length it has high values:
I am on android, app version 2.28.1
The text was updated successfully, but these errors were encountered: