Closed blonsky95 closed 4 years ago
Ok so these 2 have to match,
One is the time in millis the value for reesult day is and the other is the value of the x axis day time
2020-06-14 11:37:57.740 19614-19614/com.tatoe.mydigicoach D/ChartManager: X AXIS results value millis: 1.59156719E12 2020-06-14 11:37:57.741 19614-19614/com.tatoe.mydigicoach D/ChartManager: X AXIS results value millis: 1.59165356E12 2020-06-14 11:37:57.741 19614-19614/com.tatoe.mydigicoach D/ChartManager: X AXIS results value millis: 1.59165356E12 2020-06-14 11:37:57.741 19614-19614/com.tatoe.mydigicoach D/ChartManager: X AXIS results value millis: 1.59191282E12 2020-06-14 11:37:57.755 19614-19614/com.tatoe.mydigicoach D/ChartManager$configureXAxis: X AXIS formatter millis: 1.59159996E12 2020-06-14 11:37:57.755 19614-19614/com.tatoe.mydigicoach D/ChartManager$configureXAxis: X AXIS formatter millis: 1.59169996E12 2020-06-14 11:37:57.755 19614-19614/com.tatoe.mydigicoach D/ChartManager$configureXAxis: X AXIS formatter millis: 1.59179997E12 2020-06-14 11:37:57.756 19614-19614/com.tatoe.mydigicoach D/ChartManager$configureXAxis: X AXIS formatter millis: 1.59189998E12 2020-06-14 11:37:57.759 19614-19614/com.tatoe.mydigicoach D/ChartManager$configureXAxis: X AXIS formatter millis: 1.59159996E12
Ok so situation is When you add a result and it gets the Date from the date id it gets a 12.00am. So because of the GMT, when this is then converted to time and then parsed back to a date, it gets 10pm of theday before (in case of GMT + 2 for example) so what i did as a fix is that when it generates the x axis, so times of results it adds 12 hours... If it is GMT-12 it will place it at 12am the right day, if its GMT +11 it will place it at 11pm the right day, so in the graph we will see the point after the date/label - graph still needs a bit of work though
Self explanatory days for x axis and anything for y