Problem when using grafana with timezone UTC+2h

I think the timestamps [in the data source] is CEST.

That will be your problem then. Grafana data store timestamps must be in UTC,
if for no other reason than to avoid duplicate timestamps when the clocks go
back in autumn.

because when i execute query with influxQl and use for time the last hour
(ex: 08h30am in france) of the day (select last… where time >=
‘2021-05-13T08:20:00’) ,the result value/timestamps is correct

You may say “correct” but you mean “local”. That is not “correct” for
Grafana.

You must use UTC (or have some way to convert your local timezone back to UTC
before Grafana sees it) for the timestamps in your data store, otherwise you
will experience offsets of the type you describe.

Antony.

2 Likes