# Time Range not strictly enforced on a Tag History binding

**URL:** <https://forum.inductiveautomation.com/t/time-range-not-strictly-enforced-on-a-tag-history-binding/25470>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [May 31, 2019, 5:29pm UTC](https://forum.inductiveautomation.com/t/time-range-not-strictly-enforced-on-a-tag-history-binding/25470 "2019-05-31T17:29:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![chenlu.han](https://avatars.discourse-cdn.com/v4/letter/c/47e85d/32.png) [@chenlu.han](https://forum.inductiveautomation.com/u/chenlu.han)\
**Post date:** [May 31, 2019, 5:29pm UTC](https://forum.inductiveautomation.com/t/time-range-not-strictly-enforced-on-a-tag-history-binding/25470/1 "2019-05-31T17:29:56Z")

</div>

Hi All,

I am displaying historical data on a XYChart in Perspective. I created a dataSource using Tag History binding.

 ![TagHistoryBinding](https://us1.discourse-cdn.com/inductiveautomation/original/2X/2/23429ba43051b0f58734ea9364f103c0c4e27233.png)  
The start date and end date are from two DateTimeInput objects (props.formattedValues.datetime)

My problem is that the obtained data contains records outside of the specified time range. In particular, I selected end date as 2019-May-27, but data from May-31 still show up on the plot (Picture below). To verify this, I am displaying Unix time value for both DateTimeInput objects right below them. I can see that the last entry from the data table includes a time\_stamp after the end date.

 ![Page](https://us1.discourse-cdn.com/inductiveautomation/original/2X/4/4eb3502deff0320b118152ad5da9e0d751fd3b44.png)

Can somebody suggest what could be the cause here?

Thank you!
