Comments (6)
how can I solve it ?
from pedometer.
I have it acting slightly differently. It just seems to reset the current date, then the next day goes huge. I can have a look at it once I stop travelling.
from pedometer.
I've just had this happen when I've traveled between timezones last week - each timezone change threw out the pedometer count for a day or so each side of the time the timezone change occurred. It doesn't correct when you change back to the original timezone in my experience.
from pedometer.
I am also experienced this bug.
I was airborne while crossing midnight, leaving UTC+08 and arriving in UTC+11.
from pedometer.
Huh, even weirder, my Wednesday stats have now disappeared altogether.
from pedometer.
I think this problem might be caused by storing only daily counts, but with "today" depending on the local time zone. When you change timezones, "today" changes and weird things happen.
One possible solution is to instead store step counts every 15 minutes, to account for every possible time zone offset. That way, you can always compute the "daily" step count based on the user's current timezone without making the database dependent on it. The DB size will grow much faster, but you'd still need to walk nonstop for 30 years before it hits a million rows.
Your displayed step counts would change if you travel between timezones, but that's something that can be worked around if you also store the current timezone in the database for each row.
@j4velin what do you think?
from pedometer.
Related Issues (20)
- Feature request: distance traveled HOT 1
- Cannot show step count on lock screen HOT 1
- does not count steps......
- Is the application still maintened ? HOT 1
- Other Phones HOT 1
- Enter objective with a keyboard HOT 3
- Make Start Counting button more obvious HOT 1
- Copycat / Clone on Google Play HOT 1
- Not working When Clearing All Apps at once in xiaomi Android 10 Mobile HOT 2
- Add a splash Screen HOT 2
- Negative count HOT 1
- Czech translation HOT 2
- Open pedometer.csv with LibreOffice spreadsheet HOT 2
- App stopped working, maybe more permissions?
- Dark mode HOT 1
- Notification center KM option
- Themed app icon HOT 1
- How to quit the app? HOT 1
- New version
- Abnormally high number of steps caused by timezone changes
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pedometer.