# \[IGN-6087\] DateTime Picker is a day behind selection

**URL:** <https://forum.inductiveautomation.com/t/ign-6087-datetime-picker-is-a-day-behind-selection/74352>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [May 31, 2023, 1:07pm UTC](https://forum.inductiveautomation.com/t/ign-6087-datetime-picker-is-a-day-behind-selection/74352 "2023-05-31T13:07:49Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gavin\_Tipker](https://avatars.discourse-cdn.com/v4/letter/g/f475e1/32.png) [@Gavin\_Tipker](https://forum.inductiveautomation.com/u/Gavin_Tipker)\
**Post date:** [May 31, 2023, 1:07pm UTC](https://forum.inductiveautomation.com/t/ign-6087-datetime-picker-is-a-day-behind-selection/74352/1 "2023-05-31T13:07:49Z")

</div>

![Datepickerissue](https://us1.discourse-cdn.com/inductiveautomation/original/3X/7/6/76b1b97cd7fc9c6df8d38b04c65aaff592019962.png)  
I have noticed what seems to be a new bug with the DatePicker component. I know there is a known issue where the DatePicker is a day behind on the first selection but this new issue seems to be every selection I make. Has anybody else had this issue? I know I could use some scripting to manually fix this but I don't want to do that if this is an issue that is going to be fixed.

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [May 31, 2023, 1:42pm UTC](https://forum.inductiveautomation.com/t/ign-6087-datetime-picker-is-a-day-behind-selection/74352/2 "2023-05-31T13:42:55Z")

</div>

I'm seeing the same thing. Tried with 8.1.17 and 8.1.27. Both showed the same issue.

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [May 31, 2023, 2:59pm UTC](https://forum.inductiveautomation.com/t/ign-6087-datetime-picker-is-a-day-behind-selection/74352/3 "2023-05-31T14:59:41Z")

</div>

I do not see this while working with 8.1.29 (nightly), but I don't think we've done anything in this area recently to change any behaviors for that component. Do you have any bindings or change scripts present for the component? Have you seen the same behavior as you select other dates?

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [May 31, 2023, 3:14pm UTC](https://forum.inductiveautomation.com/t/ign-6087-datetime-picker-is-a-day-behind-selection/74352/4 "2023-05-31T15:14:39Z")

</div>

I tried it in a fresh view, in a sandbox project that's mostly empty. I can't see anything that would affect it.  
It did so for any date I tried.

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [May 31, 2023, 4:02pm UTC](https://forum.inductiveautomation.com/t/ign-6087-datetime-picker-is-a-day-behind-selection/74352/5 "2023-05-31T16:02:23Z")

</div>

What's the time difference between your Session/Designer and the Gateway?

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [May 31, 2023, 4:05pm UTC](https://forum.inductiveautomation.com/t/ign-6087-datetime-picker-is-a-day-behind-selection/74352/6 "2023-05-31T16:05:10Z")

</div>

2 hours.

Gateway is on UTC timezone, designer on Europe/paris.

---

<div class="post-metadata">

**Author:** ![Gavin\_Tipker](https://avatars.discourse-cdn.com/v4/letter/g/f475e1/32.png) [@Gavin\_Tipker](https://forum.inductiveautomation.com/u/Gavin_Tipker)\
**Post date:** [May 31, 2023, 5:17pm UTC](https://forum.inductiveautomation.com/t/ign-6087-datetime-picker-is-a-day-behind-selection/74352/7 "2023-05-31T17:17:51Z")

</div>

Gateway is on Central time and Session is on Eastern time so 1 hour difference.

---

<div class="post-metadata">

**Author:** ![Gavin\_Tipker](https://avatars.discourse-cdn.com/v4/letter/g/f475e1/32.png) [@Gavin\_Tipker](https://forum.inductiveautomation.com/u/Gavin_Tipker)\
**Post date:** [June 1, 2023, 7:36pm UTC](https://forum.inductiveautomation.com/t/ign-6087-datetime-picker-is-a-day-behind-selection/74352/8 "2023-06-01T19:36:53Z")

</div>

This issue appears to be fixed today. It is selecting the current date today.

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [June 1, 2023, 8:11pm UTC](https://forum.inductiveautomation.com/t/ign-6087-datetime-picker-is-a-day-behind-selection/74352/9 "2023-06-01T20:11:30Z")

</div>

It's still very suspicious. Was it every date you selected, or was it just 10 May 2023?

---

<div class="post-metadata">

**Author:** ![Gavin\_Tipker](https://avatars.discourse-cdn.com/v4/letter/g/f475e1/32.png) [@Gavin\_Tipker](https://forum.inductiveautomation.com/u/Gavin_Tipker)\
**Post date:** [June 1, 2023, 8:15pm UTC](https://forum.inductiveautomation.com/t/ign-6087-datetime-picker-is-a-day-behind-selection/74352/10 "2023-06-01T20:15:04Z")

</div>

It was every date. I have seen it be a day before on the first selection before but this was every date. I even tried other months and it was all still 1 day before.

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [June 2, 2023, 7:31am UTC](https://forum.inductiveautomation.com/t/ign-6087-datetime-picker-is-a-day-behind-selection/74352/11 "2023-06-02T07:31:35Z")

</div>

It appears to be 'fixed' for me too, today...  
Though I do see the behavior @Gavin_Tipker talks about: On the first selection, it selected the cell just before the one I clicked. But it DOES select it on the date picker, it's not just the value that's wrong.  
Subsequent selections work just fine.  
Tested only on 8.1.17, I'll try on a more recent version when I have a few minutes.

In the tests I did before, the selected cell on the picker was right and only the value was offset by -1 day.

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [June 2, 2023, 2:42pm UTC](https://forum.inductiveautomation.com/t/ign-6087-datetime-picker-is-a-day-behind-selection/74352/12 "2023-06-02T14:42:35Z")

</div>

Even though I correctly read 8.1.17, I didn't fully comprehend how long ago that release occurred. We've performed a lot of development work on the DateTime components in the last year.

---

<div class="post-metadata">

**Author:** ![Gavin\_Tipker](https://avatars.discourse-cdn.com/v4/letter/g/f475e1/32.png) [@Gavin\_Tipker](https://forum.inductiveautomation.com/u/Gavin_Tipker)\
**Post date:** [June 2, 2023, 2:58pm UTC](https://forum.inductiveautomation.com/t/ign-6087-datetime-picker-is-a-day-behind-selection/74352/13 "2023-06-02T14:58:04Z")

</div>

We are on 8.1.25 now and I have not noticed the issue where it selects the wrong date on the first selection. I know we did an update like a month or two ago and it seems to be fixed after that. But the issue we had the other day where it kept selecting the day before was on 8.1.25.

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [June 2, 2023, 2:59pm UTC](https://forum.inductiveautomation.com/t/ign-6087-datetime-picker-is-a-day-behind-selection/74352/14 "2023-06-02T14:59:23Z")

</div>

Just tried with 8.1.27, and i still have the -1 offset.  
The label on top is bound to the date picker's formatted value:

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/4/a/4aaee884830532674e69da1ab91d2e1c9cca41b5.png)

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/6/0603b962a9b3f7404fa14831cfaf91deeda21722.png)

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [June 2, 2023, 3:14pm UTC](https://forum.inductiveautomation.com/t/ign-6087-datetime-picker-is-a-day-behind-selection/74352/15 "2023-06-02T15:14:44Z")

</div>

Hmmm. I'm going to recommend you reach out to our Support team as I'm not able to replicate on my end and so am unable to provide a quick workaround or diagnosis.

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [June 2, 2023, 3:16pm UTC](https://forum.inductiveautomation.com/t/ign-6087-datetime-picker-is-a-day-behind-selection/74352/16 "2023-06-02T15:16:08Z")

</div>

Oh I'm not using it. I was just confirming what @Gavin_Tipker said.

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [June 2, 2023, 3:50pm UTC](https://forum.inductiveautomation.com/t/ign-6087-datetime-picker-is-a-day-behind-selection/74352/17 "2023-06-02T15:50:29Z")

</div>

We actually do already have an open issue for this, but it was not coming up during my searches because of a discrepancy between "DateTime" (my search) and "Date Time" in the ticketing system.

---

<div class="post-metadata">

**Author:** ![Chowmya\_C](https://avatars.discourse-cdn.com/v4/letter/c/d78d45/32.png) [@Chowmya\_C](https://forum.inductiveautomation.com/u/Chowmya_C)\
**Post date:** [June 2, 2023, 5:19pm UTC](https://forum.inductiveautomation.com/t/ign-6087-datetime-picker-is-a-day-behind-selection/74352/18 "2023-06-02T17:19:34Z")

</div>

Hi, I've made property binding of date and time picker to label component bidirectional.  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/a/1ad59f8ea858559fd687a7c42db24710699c970a.png)  
But in label how can I change this format as same as in date &time picker component  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/8/4/849499c78480a82ee1dc06110a5d214a3c9d7518.png)

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [June 2, 2023, 5:41pm UTC](https://forum.inductiveautomation.com/t/ign-6087-datetime-picker-is-a-day-behind-selection/74352/19 "2023-06-02T17:41:36Z")

</div>

> [@Chowmya\_C](#):
>
> I've made property binding of date and time picker to label component bidirectional.

Chowmya, this has nothing to do with this thread, "DateTime Picker is a day behind selection". It should have been asked as a new question.

---

<div class="post-metadata">

**Author:** ![jmorris](https://avatars.discourse-cdn.com/v4/letter/j/ba8739/32.png) [@jmorris](https://forum.inductiveautomation.com/u/jmorris)\
**Post date:** [August 27, 2023, 10:36pm UTC](https://forum.inductiveautomation.com/t/ign-6087-datetime-picker-is-a-day-behind-selection/74352/20 "2023-08-27T22:36:17Z")

</div>

Hi guys,  
I'm having a similar issue, the datetime "value" seems to be one hour behind the formatedValue  
 ![Datetime inconsistency](https://us1.discourse-cdn.com/inductiveautomation/original/3X/c/a/ca9d4bc57dcd03a9c3e5e01273bae30b67640ab5.png)

any ideas?  
Thanks!  
JM

[Next page](https://forum.inductiveautomation.com/t/ign-6087-datetime-picker-is-a-day-behind-selection/74352.md?page=2)
