# Wrong value in graph with bars

**URL:** <https://community.grafana.com/t/wrong-value-in-graph-with-bars/1306>\
**Category:** General\
**Created:** [June 12, 2017, 10:15am UTC](https://community.grafana.com/t/wrong-value-in-graph-with-bars/1306 "2017-06-12T10:15:17Z")\
**Posts on this page:** 1\
**Showing post:** 19

<div class="post-metadata">

**Author:** ![daniellee](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/daniellee/32/41_2.png) [@daniellee](https://community.grafana.com/u/daniellee)\
**Post date:** [October 23, 2017, 4:01pm UTC](https://community.grafana.com/t/wrong-value-in-graph-with-bars/1306/19 "2017-10-23T16:01:36Z")

</div>

> [@flopp](#):
>
> Influx is running on a Debian where I have set time zone to Sweden.

The [docs](https://docs.influxdata.com/influxdb/v1.3/introduction/installation/#ntp) say this:

> InfluxDB uses a host’s local time in UTC to assign timestamps to data and for coordination purposes.

So I’m not sure if it is saving in Swedish time or UTC time. Both InfluxDB and Grafana expect times to be saved in UTC. If the timestamps are not in UTC, you are going to have to offset the group by time with [this advanced group by syntax](https://docs.influxdata.com/influxdb/v1.3/query_language/data_exploration/#advanced-group-by-time-syntax).

To double check if your data is saved in UTC or not: create a table panel and write a simple select query. Are the values in the Time column UTC or local time? If the dashboard setting is UTC then it should be two hours behind, if the dashboard setting is local browser time then it should be the same as Swedish time.

(you can also use the Query Explorer on the Metrics tab to get the raw epoch values from InfluxDB and convert those to datetime using [https://www.epochconverter.com/](https://www.epochconverter.com/))

---

_[View the full topic](https://community.grafana.com/t/wrong-value-in-graph-with-bars/1306)._
