StephenBlackWasAlreadyTaken / xDrip-Experimental

Experimental Branches for Collaboration on DexDrip
GNU General Public License v3.0
25 stars 62 forks source link

time issue for values #384

Closed baembel08 closed 7 years ago

baembel08 commented 8 years ago

Hi,

I'm testing xdrip-experimental (release from beginning of week, self cmpiled apk with android studio). I'm Using using it with Dexcom G5 Transmitter and since midday today 09 02 2016 wrong data is computed and stored for time last reading. (see picture). System time for LG K8 Android 6 is ok. Error logg messages are three month behind real date. Quick fix would be nice, Arndt screenshot_2016-09-02-14-42-29

tzachi-dar commented 8 years ago

Seems to me that time of your dexcom is wrong, or on your cell phone).

בתאריך 2 בספט׳ 2016 5:38 אחה״צ,‏ "baembel08" notifications@github.com כתב:

Hi,

I'm testing xdrip-experimental (release from beginning of week, self cmpiled apk with android studio). I'm Using using it with Dexcom G5 Transmitter and since midday today 09 02 2016 wrong data is computed and stored for time last reading. (see picture). System time for LG K8 Android 6 is ok. Error logg messages are three month behind real date. Quick fix would be nice, Arndt [image: screenshot_2016-09-02-14-42-29] https://cloud.githubusercontent.com/assets/13855068/18207461/945be82a-712b-11e6-92ea-9a1f811c0e49.png

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/StephenBlackWasAlreadyTaken/xDrip-Experimental/issues/384, or mute the thread https://github.com/notifications/unsubscribe-auth/AHkw5L7_NgB8iAk2bqsRhFa3EOPN3c5yks5qmDTtgaJpZM4Jzxfx .

baembel08 commented 8 years ago

Hi tzachi-dar, the bg values in the graphic curve are correctly shown, only the values on top bg value and time since last reading are wrong, when I take a look into sqlite database, the unix time seems to be ok, i can send data, if you want. One interesting thin: I made a query on the userserrors table and did convert time with an online tool. the stored data is transferred to a date in 1958. when I truncate the last thre digits, the parts of a second, everything works fine: sqqlite_time

tzachi-dar commented 7 years ago

Hi,

Time that we are using is in ms, so you need to remove the 3 last digits.

I want to understand which version are you using. Is it the one from: https://github.com/StephenBlackWasAlreadyTaken/xDrip-Experimental.git or the one of the g5 branch?

baembel08 commented 7 years ago

Hi , I'm using the master branch from the url listed above. I made a download on August, 24 th. I did delete the version yesterday and reinstalled the official G5 xdrip beta version by John Costik without any time issues.

tzachi-dar commented 7 years ago

I guess that this is the code for the g5 right now.

baembel08 commented 7 years ago

Hi tzachi, I think I've find an answer: converting the timestamp into real date, yoe can see 4 rows where dexcom transmitter obvious did send a wrong time and date as in the pic below: dexcom_tr_wron_date I don't konow if its only my wrong transmitter, but for future use you could ask for a logical date.

many greetings,

baembel