Hello @mm0001,
I don’t exactly know what you mean by pick up data on every Friday.
Here’s how I filtered for data that’s only written on a Friday and then performed an aggregate window.
I live in UTC+9h location.
How do I change timezone of influxdb?
or How do I write query with timezone UTC+9h?
I ran your script, then, time is 2021/7/31 09:00:00.
Emvironment : Ubuntu on docker → it is UTC+9h.
Host and Guest OS : windows 10 → It is UTC+9h
Thank you for your reply.
I forgot to write influxDB version.
InfluxDB 2.0.7
It may depend on Grafana.
I will confirm it to Grafana.
Please refer to below chart.
last data of upper chart is 8.51k.
however, lower chart is 575.
I think time range on every of lower chart is 9:00 am 23/Jun to 9:00 am 24/Jun as local time.
It means range is UTC 0:00 am 23/Jun to 0:00 am 24/Jun.
I would like to set time range to 0:00 am 23/Jun to 0:00 am 24/Jun as local time.
Hello @mm0001,
It looks like you’re already querying from local time. To change the range to:
I would like to set time range to 0:00 am 23/Jun to 0:00 am 24/Jun as local time.
switch the time date picker to reflect that time instead of 01/07/21 at 1:00 as shown from your screen shot (I cant see the end time as it’s cut off). In the top right corner.
Alternatively you can put the dates directly into the flux query:
|> range(start: 2021-07-23T00:00:00Z, stop: 2021-07-24T00:00:00Z)
If I’m misunderstanding you and the problem isn’t that you cant select the right range but that you’ve written the data with the wrong timestamp, you might want to use the timeShift() function