influxdb icon indicating copy to clipboard operation
influxdb copied to clipboard

Local time is not displayed correctly in Influx Dashboard

Open ivanscattergood opened this issue 3 years ago • 1 comments

Steps to reproduce: List the minimal actions needed to reproduce the behavior.

  1. Create a series of data points in the afternoon in your local timezone
  2. Visualise the data in a dashboard

Expected behavior: Describe what you expected to happen. I expect times in the afternoon to be shown Either in 24hr clock (like in UTC) image

OR With a PM suffix

Actual behavior: Describe What actually happened. You can see although the time period selected is from 18:00 it displays as 07:30 image

Environment info:

  • System info: Run uname -srm and copy the output here [root@influx-vm azureuser]# uname -srm Linux 3.10.0-1160.15.2.el7.x86_64 x86_64

  • InfluxDB version: Run influxd version and copy the output here [root@influx-vm azureuser]# influxd version InfluxDB 2.0.8 (git: e91d41810f) build_date: 2021-08-13T18:22:30Z

  • Other relevant environment details: Container runtime, disk info, etc

Config: Copy any non-default config values here or attach the full config as a gist or file.

Logs: Include snippet of errors in log.

Performance: Generate profiles with the following commands for bugs related to performance, locking, out of memory (OOM), etc.

# Commands should be run when the bug is actively happening.
# Note: This command will run for ~30 seconds.
curl -o profiles.tar.gz "http://localhost:8086/debug/pprof/all?cpu=30s"
iostat -xd 1 30 > iostat.txt
# Attach the `profiles.tar.gz` and `iostat.txt` output files.

ivanscattergood avatar Sep 19 '21 11:09 ivanscattergood

This is still an issue, at least in the table component: image image

The time in the first row of the "Local" table, for example, is incorrect; it should be either "14:17:07 EST" or "02:17:07 PM EST".

(as an aside, many of the time formatting options in the dropdown have no effect on the displayed time; perhaps the library handling the time printing was changed and now uses an incompatible format string?)

msegado avatar Feb 18 '24 20:02 msegado