# Daylight Savings Time with queryTagHistory() function

**URL:** <https://forum.inductiveautomation.com/t/daylight-savings-time-with-querytaghistory-function/26554>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [July 15, 2019, 2:42pm UTC](https://forum.inductiveautomation.com/t/daylight-savings-time-with-querytaghistory-function/26554 "2019-07-15T14:42:38Z")\
**Posts on this page:** 1\
**Showing post:** 18

<div class="post-metadata">

**Author:** ![dkylep](https://avatars.discourse-cdn.com/v4/letter/d/6de8d8/32.png) [@dkylep](https://forum.inductiveautomation.com/u/dkylep)\
**Post date:** [July 25, 2019, 7:36pm UTC](https://forum.inductiveautomation.com/t/daylight-savings-time-with-querytaghistory-function/26554/18 "2019-07-25T19:36:32Z")

</div>

I just created a new project with two XY graphs one graph pulling data using  
system.tag.queryTagHistory() function  
and one graph just binding data to the tag historian and guess what..... The time with regular binding is correct. **The queryTagHistory() function is my problem** it doesn't adjust for daylight savings time.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/f/fb2ded3638057517cc1be6147a5ab3b679657cb7.png)

FYI, the reason I'm using the query function to get the data is because my horizontal 'limit' lines disappear if I just bind the data. I have the limit lines associated with a second X axis because I'm using a single value memory tags to plot a horizontal line, I don't store the line data over time.

> [@XY Chart help, series disappear](http://forum.inductiveautomation.com/t/xy-chart-help-series-disappear/24900):
>
> I’m trying to make an XY Chart in a perspective view that seems relatively simple but I can’t get it to display properly I want something that looks like this with a live data series (Blue) and fixed limits (Red & Green) [image] Where the Red and Green series are bound to Memory tags and the Blue series is bound to a tag history. [image] The problem is the Blue series is coming from a tag history and it has polling set up so every time the Blue series updates the Red and Green lines go away…

---

_[View the full topic](https://forum.inductiveautomation.com/t/daylight-savings-time-with-querytaghistory-function/26554)._
