Dan Dascalescu
Dan Dascalescu

Reputation: 151702

Display time in local timezone when querying InfluxDB from the CLI

I store points in InfluxDB using UTC but when querying from the command line,

influx -precision rfc3339

I want to display them in the local timezone, for all queries. How can I do that?

To display the time in a specific timezone, I can add (for example) tz('America/Chicago') to the end of each query, but this is annoying. Is there a way to configure Influx to show the time in a specific timezone for all queries? The CLI documentation doesn't list and argument or command to do that.

Upvotes: 3

Views: 4458

Answers (1)

Dan Dascalescu
Dan Dascalescu

Reputation: 151702

Apparently this is not possible, but you can +1 the feature request.

Upvotes: 2

Related Questions