Query Flux2.0 time range

yes but it is a little bit more complicated than that.

I have the same problem each time daylight savings kicks in I need to tweak all my tasks manually.

there is a timeZone Location option as described here:

timezone.location() function | Flux 0.x Documentation (influxdata.com)

But It may not work on your setup… it requires zoneInfo go repository installed more info here: Error while defining location parameter for aggregateWindow - Fluxlang - InfluxData Community Forums

There is not enough information out there about this, I haven’t implemented the solution because I need to restart my InfluxDB service, and I cannot do that until a scheduled shutdown…

but if You happen to be using windows 10 and InfluxDB running as a service using NSSM. I have on my notes right here next to me how to add the zoneInfo repository:

  1. download zoneinfo.zip to any Dir (preferably the one on which you launch InfluxDB)
  2. open nssm (navigate to nssm dir and type nssm edit )
  3. go to Enviroment tab add the dir where you downloaded zoneinfo.zip
  4. save, exit and restart service.