Not sure. Are you speaking of the time zone on the Pi3 or the timezone on the server?
The MySQL server reports @@global.time_zone as SYSTEM. Which should be right. That indicates that the problem is on the Pi3 or in the config for HASS.io. Where do I find that?
The time_zone in configuration.yaml is America/Phoenix.
Right, but the times recorded in MySQL in the recorded time columns are all UTC, in other words, +7 hours ahead of Phoenix even though I have America/Phoenix as the time-zone.
That is correct. All the time storage and calculation done by HA is in UTC. Only when you ask it to be displayed on the web interface is it converted to your local time zone.
Okay, for example, if I run a query using PhpMyAdmin and want to export that data and then run some sort of report on it, the time is wonky, so I would imagine I need to do some sort of conversion back at some point.
Yes if you need to interpret the data in local time (ie how many times did I visit the garage on this calendar day) then you need to convert the times to localtime. But hey, you have a computer, maths is what they do.
So, UTC will be an hour different right? Arizona doesn’t change. I could just put a condition on the cell calculation to look for that and adjust accordingly.