i have troubles with the grafana graph an the timetable. MySql Database shows the timestamp correctly in the table - also the graph is ok when i choose the rigth time and date - the problem is, when i´m login then graph has an offset of 2 hours.
See https://dev.mysql.com/doc/refman/8.0/en/datetime.html “MySQL converts
TIMESTAMP values from the current time zone to UTC for storage, and back from
UTC to the current time zone for retrieval. (This does not occur for other
types such as DATETIME.) By default, the current time zone for each connection
is the server’s time.”
So, when Grafana fecthes a TIMESTAMP value from MySQL, the result will be in
your local (server’s) timezone, which is probably not UTC.
Can you provide a screenshot of the time on the axis still wrong please.
There is no point worrying about the data until the graph is showing the correct current time at the right hand end when set to last 3 hours or simiilar.
i have found something - the column timestamp is in format UTC+02:00 - when i go to one entrie an do under functions UTC TMESTAMP then everything is ok - the problem is my device only write timestamp include +02:00 - is any tip for a workaround ?
yes - also in phpmyadmin the timestamp is correct - when i use function for utc timestamp then the time switch to utc and grafana is working fine - but i have to do this for all entrys thats not possible to do this