# Grafana graphs show UTC data in the datasource

**URL:** <https://community.grafana.com/t/grafana-graphs-show-utc-data-in-the-datasource/11596>\
**Category:** MySQL\
**Tags:** mysql\
**Created:** [October 28, 2018, 9:01am UTC](https://community.grafana.com/t/grafana-graphs-show-utc-data-in-the-datasource/11596 "2018-10-28T09:01:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![commando](https://avatars.discourse-cdn.com/v4/letter/c/ba9def/32.png) [@commando](https://community.grafana.com/u/commando)\
**Post date:** [October 28, 2018, 9:01am UTC](https://community.grafana.com/t/grafana-graphs-show-utc-data-in-the-datasource/11596/1 "2018-10-28T09:01:56Z")

</div>

Hi,  
This is my first question in Grafana community, thanks for this great software.  
I installed Grafana one year ago, and shows our company temperature/humidity info in a server.  
Server: Ubuntu 16.04.5 LTS  
MariaDB is my datasource, 10.0.36-MariaDB-0ubuntu0.16.04.1 Ubuntu 16.04

I always upgrade system and Grafana software every month. Until v5.2.4 it is OK for all graphs. Now I find when I upgrade it to v5.3.1 or v5.3.2 there is problem like the attachment. Grafana only gets the data from datasource 8H before, not now. In the datasource, there is data at 16:00, but Grafana graph stopps at 08:00.  
BTW, I installed Zabbix plugin on the server, they are all OK after upgrade, no problem.  
Here is my server result of ‘timedatectl status’:  
$ timedatectl status  
Local time: Sun 2018-10-28 16:36:14 CST  
Universal time: Sun 2018-10-28 08:36:14 UTC  
RTC time: Sun 2018-10-28 08:36:14  
Time zone: Asia/Shanghai (CST, +0800)  
Network time on: yes  
NTP synchronized: yes  
RTC in local TZ: no

This is my SQL query for this attachment,  
select UNIX\_TIMESTAMP(dateandtime) as time\_sec, temperaturex10 as ‘Temperature’ from nti13 where $\_\_timeFilter(dateandtime) order by dateandtime asc

 ![Snipaste_2018-10-28_16-00-56](https://us1.discourse-cdn.com/grafana/original/2X/0/0c8ca33cbf9749ebf697e97c317497a574551187.jpeg)

I know most of problem could be timezone, but as I said, graphs were OK before. It is strange.  
Please help me, thanks in advance!

---

<div class="post-metadata">

**Author:** ![danielgonzalez](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/danielgonzalez/32/7125_2.png) [@danielgonzalez](https://community.grafana.com/u/danielgonzalez)\
**Post date:** [October 28, 2018, 4:57pm UTC](https://community.grafana.com/t/grafana-graphs-show-utc-data-in-the-datasource/11596/2 "2018-10-28T16:57:38Z")

</div>

Hello

this is a problem that occurs due to the change of the ‘timFilter’ macro in v5.3 [#11618](https://github.com/grafana/grafana/issues/11618)[#11619](https://github.com/grafana/grafana/issues/11619)  
and it will be repaired in 5.3.3 [#13769](https://github.com/grafana/grafana/issues/13769)

---

<div class="post-metadata">

**Author:** ![commando](https://avatars.discourse-cdn.com/v4/letter/c/ba9def/32.png) [@commando](https://community.grafana.com/u/commando)\
**Post date:** [October 29, 2018, 2:15am UTC](https://community.grafana.com/t/grafana-graphs-show-utc-data-in-the-datasource/11596/3 "2018-10-29T02:15:31Z")

</div>

wow thanks danielgonzalez! Let me wait for 5.3.3:grin:
