chiefwigms / picobrew_pico

MIT License
149 stars 63 forks source link

Zseries Session Start Time Mismatch #304

Closed wiltdavi closed 2 years ago

wiltdavi commented 3 years ago

For a Zseries session the start time of the session would mismatch what was shown in the graph.

Start Time Mismatch

When the session was completed and reviewed in the history or if the session was recovered the start time would match the graph. This mismatch only occurs during the initial session creation.

To resolve this issue I changed from using UTC time to Local Time of the active session creation time. UTC time is using in other locations in this file. As I am not sure the overall intent of those other locations I did not change them. As the start time would recover in the local time I believe the intent is that the session should be created in local time.

With this change a Zseries session start time will match the graph and how it is displayed from a recovered session.

Start Time Match