Value per date in query

I am trying to get the last or max value per date.
When I group by 1d, then I get a value in a time zone from 02:00:00 to 02:00:00
Datasource is influxdb

I thought I have seen something like 24,22 in the query but I cannot find it anymore