nightscout / android-uploader

nightscout android uploader
GNU General Public License v3.0
66 stars 118 forks source link

Sometimes data is uploaded with PST, sometimes with MST, causes issues #157

Closed cjbeck closed 9 years ago

cjbeck commented 9 years ago

I haven't quite figured out why yet, but sometimes the android uploader (on the same device) uploads data in MST (seems to be after charging?), and to fix it, I can restart the application and it will start uploading data in PST. I'm thinking this has something to do with all of the time change issues that we've had previously, but i'm not certain.

Let me know if there are any steps you'd like me to take. I can fix it by restarting the app and removing all the entires that are in MST, but it's a pain. :)

ELUTE commented 9 years ago

Is auto timezone turned off for your uploader?

cjbeck commented 9 years ago

Are you talking about auto timezone on the phone itself? It _is_checked, should it not be?

ELUTE commented 9 years ago

Yes. Please uncheck it and see if that resolves the issue.

cjbeck commented 9 years ago

Yea, I unchecked it, so we'll see... I'm having a similar issue on the Tablet, so I'll make the same change there and see if it helps.

cjbeck commented 9 years ago

yea, this has fixed my issue. So, does this mean that some of the cell towers have not updated their TZ correctly?

ktind commented 9 years ago

I suspect this is an issue with the latest version of Joda-Time android that we updated to recently. I've seen it jump but in doing so it isn't actually between MST and PST it is between PDT and MST which are functionally equivalent right now. I know some people are seeing data in the future as well.

The next release makes a major change to the way we calculate time - it has its own challenges though.

I'll roll back to the previous version of Joda time and try to provide a dev build to see if it helps. Would you be willing to test again?

cjbeck commented 9 years ago

For sure, not a problem.

ktind commented 9 years ago

It turns out that we did not update Joda time. Please use the work around for now - we'll have a new release soon that should allow you to set auto update again.

ktind commented 9 years ago

Related to #164 . Closed with 9c118ea